[PATCH] D40119: [Support][CachePruning] Fix regression in pruning interval

ben via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 16 03:31:25 PST 2017


bd1976llvm created this revision.

borked by:  https://reviews.llvm.org/rL284966 (see: https://reviews.llvm.org/D25730).


https://reviews.llvm.org/D40119

Files:
  lib/Support/CachePruning.cpp


Index: lib/Support/CachePruning.cpp
===================================================================
--- lib/Support/CachePruning.cpp
+++ lib/Support/CachePruning.cpp
@@ -161,7 +161,7 @@
       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();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40119.123150.patch
Type: text/x-patch
Size: 494 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171116/b4e972ca/attachment.bin>


More information about the llvm-commits mailing list