diff options
author | Eric Christopher <echristo@apple.com> | 2011-02-05 02:48:47 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-02-05 02:48:47 +0000 |
commit | a818d031d5eef10b4edaaeb9a8455cc13920b09d (patch) | |
tree | 4d3bedcfbb414a95838728d5caeee981f617bb83 /lib/Analysis/InlineCost.cpp | |
parent | fe3f99f95c7c9ceaac3ceebbea31e40cfbc157e3 (diff) | |
download | external_llvm-a818d031d5eef10b4edaaeb9a8455cc13920b09d.zip external_llvm-a818d031d5eef10b4edaaeb9a8455cc13920b09d.tar.gz external_llvm-a818d031d5eef10b4edaaeb9a8455cc13920b09d.tar.bz2 |
Fix cut and paste error spotted by Jakob.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/InlineCost.cpp')
-rw-r--r-- | lib/Analysis/InlineCost.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/InlineCost.cpp b/lib/Analysis/InlineCost.cpp index 98a158a..58f38af 100644 --- a/lib/Analysis/InlineCost.cpp +++ b/lib/Analysis/InlineCost.cpp @@ -330,7 +330,7 @@ int InlineCostAnalyzer::CountBonusForConstant(Value *V, Constant *C) { } else if (InvokeInst *II = dyn_cast<InvokeInst>(U)) { // Turning an indirect call into a direct call is a BIG win if (II->getCalledValue() == V) - Bonus += ConstantFunctionBonus(CallSite(CI), C); + Bonus += ConstantFunctionBonus(CallSite(II), C); } // FIXME: Eliminating conditional branches and switches should // also yield a per-call performance boost. |