mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 17:56:53 +00:00
Make sure that the register is in the register class before adding it as a machine op.
llvm-svn: 142021
This commit is contained in:
parent
4191045be4
commit
b1bbf0394f
@ -5921,9 +5921,11 @@ EmitSjLjDispatchBlock(MachineInstr *MI, MachineBasicBlock *MBB) const {
|
||||
|
||||
MachineInstrBuilder MIB(&*II);
|
||||
|
||||
for (unsigned i = 0; SavedRegs[i] != 0; ++i)
|
||||
for (unsigned i = 0; SavedRegs[i] != 0; ++i) {
|
||||
if (!TRC->contains(SavedRegs[i])) continue;
|
||||
if (!DefRegs[SavedRegs[i]])
|
||||
MIB.addReg(SavedRegs[i], RegState::Implicit | RegState::Define);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user