[multiversion] Thread a function argument through all the callers of the
[oota-llvm.git] / lib / Analysis / CostModel.cpp
index 7b5dfa2c7c8c91f31635116bcbc547275e7d4400..b529c1a70aa3374ae0d40ff86f90c83872e2dc62 100644 (file)
@@ -84,7 +84,7 @@ bool
 CostModelAnalysis::runOnFunction(Function &F) {
  this->F = &F;
  auto *TTIWP = getAnalysisIfAvailable<TargetTransformInfoWrapperPass>();
- TTI = TTIWP ? &TTIWP->getTTI() : nullptr;
+ TTI = TTIWP ? &TTIWP->getTTI(F) : nullptr;
 
  return false;
 }