summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CachePruning.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-11-16 17:00:48 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-11-16 17:00:48 +0000
commitba3a87d898a5d8ae1d589f54eadcf8dc316841d9 (patch)
tree23582406ff9c5cecc28b417602b1990ad25f8be7 /llvm/lib/Support/CachePruning.cpp
parent68f7ee2ef96ea426dc9d52e818782f00cdfa8e0b (diff)
downloadbcm5719-llvm-ba3a87d898a5d8ae1d589f54eadcf8dc316841d9.tar.gz
bcm5719-llvm-ba3a87d898a5d8ae1d589f54eadcf8dc316841d9.zip
Revert "[Support][CachePruning] Fix regression in pruning interval"
This reverts commit r318397. It broke tools/gold/X86/cache.ll. llvm-svn: 318419
Diffstat (limited to 'llvm/lib/Support/CachePruning.cpp')
-rw-r--r--llvm/lib/Support/CachePruning.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CachePruning.cpp b/llvm/lib/Support/CachePruning.cpp
index 271cfc58c95..5a9580cf440 100644
--- a/llvm/lib/Support/CachePruning.cpp
+++ b/llvm/lib/Support/CachePruning.cpp
@@ -161,7 +161,7 @@ bool llvm::pruneCache(StringRef Path, CachePruningPolicy Policy) {
return false;
}
} else {
- if (Policy.Interval != seconds(0)) {
+ if (Policy.Interval == seconds(0)) {
// Check whether the time stamp is older than our pruning interval.
// If not, do nothing.
const auto TimeStampModTime = FileStatus.getLastModificationTime();
OpenPOWER on IntegriCloud