From 6d1db01284b08a88db975f1a97ad7f95bdd9f6e6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 21 Nov 2003 21:57:29 +0000 Subject: [PATCH] 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 --- lib/Transforms/IPO/InlineSimple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp index 8b7c4adee34..eec2ebd694a 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(*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.