Index: lib/Analysis/InlineCost.cpp =================================================================== --- lib/Analysis/InlineCost.cpp +++ lib/Analysis/InlineCost.cpp @@ -1320,7 +1320,7 @@ // Bail out the moment we cross the threshold. This means we'll under-count // the cost, but only when undercounting doesn't matter. if (Cost > Threshold) - break; + return false; BasicBlock *BB = BBWorklist[Idx]; if (BB->empty())