[llvm-commits] CVS: llvm/lib/Transforms/IPO/InlineSimple.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Nov 21 15:58:01 CST 2003


Changes in directory llvm/lib/Transforms/IPO:

InlineSimple.cpp updated: 1.58 -> 1.59

---
Log message:

Considering that CI is not even IN SCOPE here, I wooda thought the compiler
would have caught this.  *sigh*


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

Index: llvm/lib/Transforms/IPO/InlineSimple.cpp
diff -u llvm/lib/Transforms/IPO/InlineSimple.cpp:1.58 llvm/lib/Transforms/IPO/InlineSimple.cpp:1.59
--- llvm/lib/Transforms/IPO/InlineSimple.cpp:1.58	Fri Nov 21 15:46:09 2003
+++ llvm/lib/Transforms/IPO/InlineSimple.cpp	Fri Nov 21 15:57:29 2003
@@ -62,7 +62,7 @@
       Reduction += CI->getCalledValue() == V ? 500 : 0;
     } else if (InvokeInst *II = dyn_cast<InvokeInst>(*UI)) {
       // Turning an indirect call into a direct call is a BIG win
-      Reduction += CI->getCalledValue() == V ? 500 : 0;
+      Reduction += II->getCalledValue() == V ? 500 : 0;
     } else {
       // Figure out if this instruction will be removed due to simple constant
       // propagation.





More information about the llvm-commits mailing list