diff options
author | Easwaran Raman <eraman@google.com> | 2016-08-29 20:45:51 +0000 |
---|---|---|
committer | Easwaran Raman <eraman@google.com> | 2016-08-29 20:45:51 +0000 |
commit | 7060af9d225b7a2065d9bb698673dedead7c57d6 (patch) | |
tree | ed6556395deb1136a1cba75fcacb3a3bada3a1aa /llvm/lib/Analysis | |
parent | f6ac565031343554370a6a3139f88341765fa32d (diff) | |
download | bcm5719-llvm-7060af9d225b7a2065d9bb698673dedead7c57d6.tar.gz bcm5719-llvm-7060af9d225b7a2065d9bb698673dedead7c57d6.zip |
Fix a thinko in r278189.
llvm-svn: 280008
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r-- | llvm/lib/Analysis/InlineCost.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp index 9fbb2853594..22d291b14c7 100644 --- a/llvm/lib/Analysis/InlineCost.cpp +++ b/llvm/lib/Analysis/InlineCost.cpp @@ -962,7 +962,7 @@ bool CallAnalyzer::visitCallSite(CallSite CS) { // out. Pretend to inline the function, with a custom threshold. auto IndirectCallParams = Params; IndirectCallParams.DefaultThreshold = InlineConstants::IndirectCallThreshold; - CallAnalyzer CA(TTI, GetAssumptionCache, PSI, *F, CS, Params); + CallAnalyzer CA(TTI, GetAssumptionCache, PSI, *F, CS, IndirectCallParams); if (CA.analyzeCall(CS)) { // We were able to inline the indirect call! Subtract the cost from the // threshold to get the bonus we want to apply, but don't go below zero. |