[llvm-commits] CVS: llvm/lib/CodeGen/PrologEpilogInserter.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri May 13 14:07:31 PDT 2005



Changes in directory llvm/lib/CodeGen:

PrologEpilogInserter.cpp updated: 1.42 -> 1.43
---
Log message:

Tolerate instrs with extra args


---
Diffs of the changes:  (+1 -1)

 PrologEpilogInserter.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff -u llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.42 llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.43
--- llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.42	Thu Apr 21 17:33:33 2005
+++ llvm/lib/CodeGen/PrologEpilogInserter.cpp	Fri May 13 16:07:15 2005
@@ -118,7 +118,7 @@
     for (MachineBasicBlock::iterator I = BB->begin(); I != BB->end(); )
       if (I->getOpcode() == FrameSetupOpcode ||
           I->getOpcode() == FrameDestroyOpcode) {
-        assert(I->getNumOperands() == 1 && "Call Frame Setup/Destroy Pseudo"
+        assert(I->getNumOperands() >= 1 && "Call Frame Setup/Destroy Pseudo"
                " instructions should have a single immediate argument!");
         unsigned Size = I->getOperand(0).getImmedValue();
         if (Size > MaxCallFrameSize) MaxCallFrameSize = Size;






More information about the llvm-commits mailing list