[llvm-commits] CVS: llvm/lib/Target/X86/X86RegisterInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri May 13 13:46:52 PDT 2005
Changes in directory llvm/lib/Target/X86:
X86RegisterInfo.cpp updated: 1.100 -> 1.101
---
Log message:
allow RETI
---
Diffs of the changes: (+1 -1)
X86RegisterInfo.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Target/X86/X86RegisterInfo.cpp
diff -u llvm/lib/Target/X86/X86RegisterInfo.cpp:1.100 llvm/lib/Target/X86/X86RegisterInfo.cpp:1.101
--- llvm/lib/Target/X86/X86RegisterInfo.cpp:1.100 Tue Apr 5 23:19:22 2005
+++ llvm/lib/Target/X86/X86RegisterInfo.cpp Fri May 13 15:46:35 2005
@@ -493,7 +493,7 @@
const MachineFrameInfo *MFI = MF.getFrameInfo();
MachineBasicBlock::iterator MBBI = prior(MBB.end());
MachineInstr *MI;
- assert(MBBI->getOpcode() == X86::RET &&
+ assert((MBBI->getOpcode() == X86::RET || MBBI->getOpcode() == X86::RETI) &&
"Can only insert epilog into returning blocks");
if (hasFP(MF)) {
More information about the llvm-commits
mailing list