diff options
-rw-r--r-- | include/llvm/Analysis/InlineCost.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Analysis/InlineCost.h b/include/llvm/Analysis/InlineCost.h index d723e75e29..7ce49d7de3 100644 --- a/include/llvm/Analysis/InlineCost.h +++ b/include/llvm/Analysis/InlineCost.h @@ -172,7 +172,7 @@ namespace llvm { /// resetCachedFunctionInfo - erase any cached cost info for this function. void resetCachedCostInfo(Function* Caller) { - CachedFunctionInfo[Caller].Metrics.NumBlocks = 0; + CachedFunctionInfo[Caller] = FunctionInfo(); } }; } |