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

Chris Lattner lattner at cs.uiuc.edu
Tue Aug 26 20:09:01 PDT 2003


Changes in directory llvm/lib/Transforms/Scalar:

SCCP.cpp updated: 1.72 -> 1.73

---
Log message:

Fix bug: SCCP/2003-08-26-InvokeHandling.ll


---
Diffs of the changes:

Index: llvm/lib/Transforms/Scalar/SCCP.cpp
diff -u llvm/lib/Transforms/Scalar/SCCP.cpp:1.72 llvm/lib/Transforms/Scalar/SCCP.cpp:1.73
--- llvm/lib/Transforms/Scalar/SCCP.cpp:1.72	Mon Aug 18 09:33:38 2003
+++ llvm/lib/Transforms/Scalar/SCCP.cpp	Tue Aug 26 20:08:35 2003
@@ -192,7 +192,10 @@
   void visitLoadInst      (Instruction &I) { markOverdefined(&I); }
   void visitGetElementPtrInst(GetElementPtrInst &I);
   void visitCallInst      (Instruction &I) { markOverdefined(&I); }
-  void visitInvokeInst    (Instruction &I) { markOverdefined(&I); }
+  void visitInvokeInst    (TerminatorInst &I) {
+    markOverdefined(&I);
+    visitTerminatorInst(I);
+  }
   void visitAllocationInst(Instruction &I) { markOverdefined(&I); }
   void visitVarArgInst    (Instruction &I) { markOverdefined(&I); }
   void visitFreeInst      (Instruction &I) { /*returns void*/ }





More information about the llvm-commits mailing list