diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp --- a/llvm/lib/Analysis/InlineCost.cpp +++ b/llvm/lib/Analysis/InlineCost.cpp @@ -3098,10 +3098,10 @@ [&](Function &F) -> AssumptionCache & { return FAM.getResult(F); }; + TargetTransformInfo &TTI = FAM.getResult(F); Module *M = F.getParent(); ProfileSummaryInfo PSI(*M); DataLayout DL(M); - TargetTransformInfo TTI(DL); // FIXME: Redesign the usage of InlineParams to expand the scope of this pass. // In the current implementation, the type of InlineParams doesn't matter as // the pass serves only for verification of inliner's decisions.