Skip to content

Commit 7060af9

Browse files
author
Easwaran Raman
committed
Fix a thinko in r278189.
llvm-svn: 280008
1 parent f6ac565 commit 7060af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/InlineCost.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ bool CallAnalyzer::visitCallSite(CallSite CS) {
962962
// out. Pretend to inline the function, with a custom threshold.
963963
auto IndirectCallParams = Params;
964964
IndirectCallParams.DefaultThreshold = InlineConstants::IndirectCallThreshold;
965-
CallAnalyzer CA(TTI, GetAssumptionCache, PSI, *F, CS, Params);
965+
CallAnalyzer CA(TTI, GetAssumptionCache, PSI, *F, CS, IndirectCallParams);
966966
if (CA.analyzeCall(CS)) {
967967
// We were able to inline the indirect call! Subtract the cost from the
968968
// threshold to get the bonus we want to apply, but don't go below zero.

0 commit comments

Comments
 (0)