aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorSamuel Antao <sfantao@us.ibm.com>2015-03-17 19:31:19 +0000
committerSamuel Antao <sfantao@us.ibm.com>2015-03-17 19:31:19 +0000
commit0d59f31d124ebf7278541a14461edb3271ec0817 (patch)
tree9abab300debceef3b70a77c9ce19db2c76740dd4 /clang/lib/CodeGen/CodeGenModule.cpp
parent7ed84a815174e3695d40bc1d27894609e9ae7ff5 (diff)
downloadllvm-0d59f31d124ebf7278541a14461edb3271ec0817.zip
llvm-0d59f31d124ebf7278541a14461edb3271ec0817.tar.gz
llvm-0d59f31d124ebf7278541a14461edb3271ec0817.tar.bz2
Add assertion to detect invalid registers in the PowerPC MC instruction lowering.
We have observed that noreg was being generated due to a bug in FastIsel and was not being detected during emission. It happens that in the Asm emission there is an assertion that detects this in getRegisterName() from the tbl-generated file PPCGenAsmWriter.inc. However, when emitting an Obj file, invalid registers can be emitted given that no check are made in getBinaryCodeFromInstr() from PPCGenMCCodeEmitter.inc. In order to cover all cases this adds an assertion for reg operands in LowerPPCMachineInstrToMCInst. llvm-svn: 232525
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions