aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2020-01-14 13:48:34 -0500
committerMatt Arsenault <arsenm2@gmail.com>2020-01-15 08:58:57 -0500
commit3ab7b7f53552a0969bd89db3317eb5a3ddf31d8f (patch)
tree77f77906850b6eaa1c4be1430e35b1a1dbf93a9e /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent46e3edcc2c89e34b3ec198387b758a6998f5980b (diff)
downloadllvm-3ab7b7f53552a0969bd89db3317eb5a3ddf31d8f.zip
llvm-3ab7b7f53552a0969bd89db3317eb5a3ddf31d8f.tar.gz
llvm-3ab7b7f53552a0969bd89db3317eb5a3ddf31d8f.tar.bz2
TableGen/GlobalISel: Don't reconstruct CodeGenRegBank
The maps for dealing with the relationships between different register classes and subregister indexes rely on unique pointers for every class/index. By constructing a second copy of CodeGenRegBank, two different pointer values existed for a given subregister depending on where you were querying. Use the existing CodeGenRegBank owned by the CodeGenTarget instead of constructing a second copy. This avoids incorrectly failing map lookups in a future change.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions