[llvm-commits] CVS: llvm/lib/Transforms/Utils/InlineFunction.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Sep 22 18:32:02 PDT 2003


Changes in directory llvm/lib/Transforms/Utils:

InlineFunction.cpp updated: 1.10 -> 1.11

---
Log message:

Fix bugs in the last change


---
Diffs of the changes:

Index: llvm/lib/Transforms/Utils/InlineFunction.cpp
diff -u llvm/lib/Transforms/Utils/InlineFunction.cpp:1.10 llvm/lib/Transforms/Utils/InlineFunction.cpp:1.11
--- llvm/lib/Transforms/Utils/InlineFunction.cpp:1.10	Mon Sep 22 17:35:39 2003
+++ llvm/lib/Transforms/Utils/InlineFunction.cpp	Mon Sep 22 18:30:59 2003
@@ -68,7 +68,7 @@
     for (BasicBlock::iterator I = InvokeDest->begin();
          PHINode *PN = dyn_cast<PHINode>(I); ++I) {
       // Save the value to use for this edge...
-      InvokeDestPHIValues.push_back(PN->getIncomingValueForBlock(OrigBB));
+      InvokeDestPHIValues.push_back(PN->getIncomingValueForBlock(AfterCallBB));
     }
 
     // Remove (unlink) the InvokeInst from the function...
@@ -252,7 +252,7 @@
     // PHI node) now.
     for (BasicBlock::iterator I = InvokeDest->begin();
          PHINode *PN = dyn_cast<PHINode>(I); ++I)
-      PN->removeIncomingValue(OrigBB);
+      PN->removeIncomingValue(AfterCallBB);
   }
   // Now that the function is correct, make it a little bit nicer.  In
   // particular, move the basic blocks inserted from the end of the function





More information about the llvm-commits mailing list