summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/InlineSimple.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-21 21:57:29 +0000
committerChris Lattner <sabre@nondot.org>2003-11-21 21:57:29 +0000
commit6d1db01284b08a88db975f1a97ad7f95bdd9f6e6 (patch)
treee39ee7262acbcde9ab9b1cc4bdd4570fdd76431f /lib/Transforms/IPO/InlineSimple.cpp
parent1e2385b941242f2f96398dc62767420622856149 (diff)
downloadllvm-6d1db01284b08a88db975f1a97ad7f95bdd9f6e6.tar.gz
llvm-6d1db01284b08a88db975f1a97ad7f95bdd9f6e6.tar.bz2
llvm-6d1db01284b08a88db975f1a97ad7f95bdd9f6e6.tar.xz
Considering that CI is not even IN SCOPE here, I wooda thought the compiler
would have caught this. *sigh* git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10142 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/InlineSimple.cpp')
-rw-r--r--lib/Transforms/IPO/InlineSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp
index 8b7c4adee3..eec2ebd694 100644
--- a/lib/Transforms/IPO/InlineSimple.cpp
+++ b/lib/Transforms/IPO/InlineSimple.cpp
@@ -62,7 +62,7 @@ static unsigned CountCodeReductionForConstant(Value *V) {
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.