diff options
author | Ben Dunbobbin <bd1976llvm@gmail.com> | 2017-11-17 14:42:18 +0000 |
---|---|---|
committer | Ben Dunbobbin <bd1976llvm@gmail.com> | 2017-11-17 14:42:18 +0000 |
commit | cac52140bc1dae17418bcc8753cf3863a8d865cf (patch) | |
tree | f83d75ee498804f053915c97b524785df0c2dbe3 /llvm/lib/Support/CachePruning.cpp | |
parent | 024d0b3bb96bc6e9234c647dcd4bad69b21fb1fc (diff) | |
download | llvm-cac52140bc1dae17418bcc8753cf3863a8d865cf.zip llvm-cac52140bc1dae17418bcc8753cf3863a8d865cf.tar.gz llvm-cac52140bc1dae17418bcc8753cf3863a8d865cf.tar.bz2 |
[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
This is a second attempt to commit this.
The first attempt broke lld and gold tests that had been written against
the incorrect behaivour.
llvm-svn: 318524
Diffstat (limited to 'llvm/lib/Support/CachePruning.cpp')
-rw-r--r-- | llvm/lib/Support/CachePruning.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CachePruning.cpp b/llvm/lib/Support/CachePruning.cpp index 5a9580cf..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(); |