From ba3a87d898a5d8ae1d589f54eadcf8dc316841d9 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 16 Nov 2017 17:00:48 +0000 Subject: Revert "[Support][CachePruning] Fix regression in pruning interval" This reverts commit r318397. It broke tools/gold/X86/cache.ll. llvm-svn: 318419 --- llvm/lib/Support/CachePruning.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/CachePruning.cpp') 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(); -- cgit v1.2.3