summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-13 23:36:36 +0000
committerDan Gohman <gohman@apple.com>2009-10-13 23:36:36 +0000
commitc0779370e7cd34aec02e442905842742a220cc48 (patch)
tree0df76661130b1fdcfb258494602793ffd26aa308
parent3a80daced04244c4933fcf0f94047861b24bf493 (diff)
downloadbcm5719-llvm-c0779370e7cd34aec02e442905842742a220cc48.tar.gz
bcm5719-llvm-c0779370e7cd34aec02e442905842742a220cc48.zip
Fix resetCachedCostInfo to reset all of the cost information, instead of
just the NumBlocks field. llvm-svn: 84056
-rw-r--r--llvm/include/llvm/Analysis/InlineCost.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Analysis/InlineCost.h b/llvm/include/llvm/Analysis/InlineCost.h
index d723e75e29f..7ce49d7de33 100644
--- a/llvm/include/llvm/Analysis/InlineCost.h
+++ b/llvm/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();
}
};
}
OpenPOWER on IntegriCloud