[llvm-commits] CVS: llvm/lib/Transforms/Scalar/ADCE.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Apr 10 11:54:00 PDT 2004


Changes in directory llvm/lib/Transforms/Scalar:

ADCE.cpp updated: 1.74 -> 1.75

---
Log message:

Fix a bug in my checkin last night that was breaking programs using invoke.


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

Index: llvm/lib/Transforms/Scalar/ADCE.cpp
diff -u llvm/lib/Transforms/Scalar/ADCE.cpp:1.74 llvm/lib/Transforms/Scalar/ADCE.cpp:1.75
--- llvm/lib/Transforms/Scalar/ADCE.cpp:1.74	Sat Apr 10 02:27:48 2004
+++ llvm/lib/Transforms/Scalar/ADCE.cpp	Sat Apr 10 11:53:29 2004
@@ -210,7 +210,7 @@
         if (F && AA->onlyReadsMemory(F)) {
           // The function cannot unwind.  Convert it to a call with a branch
           // after it to the normal destination.
-          std::vector<Value*> Args(II->op_begin()+1, II->op_end());
+          std::vector<Value*> Args(II->op_begin()+3, II->op_end());
           std::string Name = II->getName(); II->setName("");
           Instruction *NewCall = new CallInst(F, Args, Name, II);
           II->replaceAllUsesWith(NewCall);





More information about the llvm-commits mailing list