Fix a thinko in r278189.

llvm-svn: 280008
This commit is contained in:
Easwaran Raman 2016-08-29 20:45:51 +00:00
parent f6ac565031
commit 7060af9d22
1 changed files with 1 additions and 1 deletions

View File

@ -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.