From 7f426869ba3d7210aeb2d71e8550f4c30db9e32a Mon Sep 17 00:00:00 2001 From: Ben Dunbobbin Date: Thu, 16 Nov 2017 13:15:56 +0000 Subject: [PATCH] [Support][CachePruning] Fix regression in pruning interval Fixed broken comparison. borked by: rL284966 (see: https://reviews.llvm.org/D25730). Differential Revision: https://reviews.llvm.org/D40119 llvm-svn: 318397 --- llvm/lib/Support/CachePruning.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/CachePruning.cpp b/llvm/lib/Support/CachePruning.cpp index 5a9580c..271cfc5 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(); -- 2.7.4