forked from OSchip/llvm-project
parent
281e4b1f92
commit
44e65a512d
|
|
@ -751,7 +751,7 @@ void PEI::replaceFrameIndices(MachineFunction &Fn) {
|
|||
|
||||
MachineInstr *MI = I;
|
||||
bool DoIncr = true;
|
||||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i)
|
||||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||
if (MI->getOperand(i).isFI()) {
|
||||
// Some instructions (e.g. inline asm instructions) can have
|
||||
// multiple frame indices and/or cause eliminateFrameIndex
|
||||
|
|
@ -778,6 +778,7 @@ void PEI::replaceFrameIndices(MachineFunction &Fn) {
|
|||
MI = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (DoIncr && I != BB->end()) ++I;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue