mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 14:06:36 +00:00
Skip impdef regs during eabi save/restore list emission to workaround PR11902
llvm-svn: 161301
This commit is contained in:
parent
dca34647bc
commit
b0d4fe0a5e
@ -1136,8 +1136,14 @@ void ARMAsmPrinter::EmitUnwindingInstruction(const MachineInstr *MI) {
|
||||
assert(SrcReg == ARM::SP &&
|
||||
"Only stack pointer as a source reg is supported");
|
||||
for (unsigned i = StartOp, NumOps = MI->getNumOperands() - NumOffset;
|
||||
i != NumOps; ++i)
|
||||
RegList.push_back(MI->getOperand(i).getReg());
|
||||
i != NumOps; ++i) {
|
||||
const MachineOperand &MO = MI->getOperand(i);
|
||||
// Actually, there should never be any impdef stuff here. Skip it
|
||||
// temporary to workaround PR11902.
|
||||
if (MO.isImplicit())
|
||||
continue;
|
||||
RegList.push_back(MO.getReg());
|
||||
}
|
||||
break;
|
||||
case ARM::STR_PRE_IMM:
|
||||
case ARM::STR_PRE_REG:
|
||||
|
Loading…
Reference in New Issue
Block a user