llvm.org GIT mirror llvm / 6065313
Merge r64316 from mainline. Don't try to set an EFLAGS operand to dead if no instruction was created. This fixes a bug introduced by r61215. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@64524 91177308-0d34-0410-b5e6-96231b3b80d8 Tanya Lattner 10 years ago
1 changed file(s) with 7 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
403403 }
404404 }
405405
406 // The EFLAGS implicit def is dead.
407 New->getOperand(3).setIsDead();
408
409 // Replace the pseudo instruction with a new instruction...
410 if (New) MBB.insert(I, New);
406 if (New) {
407 // The EFLAGS implicit def is dead.
408 New->getOperand(3).setIsDead();
409
410 // Replace the pseudo instruction with a new instruction...
411 MBB.insert(I, New);
412 }
411413 }
412414 } else if (I->getOpcode() == getCallFrameDestroyOpcode()) {
413415 // If we are performing frame pointer elimination and if the callee pops