diff options
author | Ben Dunbobbin <bd1976llvm@gmail.com> | 2017-11-16 13:15:56 +0000 |
---|---|---|
committer | Ben Dunbobbin <bd1976llvm@gmail.com> | 2017-11-16 13:15:56 +0000 |
commit | 7f426869ba3d7210aeb2d71e8550f4c30db9e32a (patch) | |
tree | e4ee8b0154627ce860def72c134e75462ca65775 /llvm/lib/Support/CachePruning.cpp | |
parent | a98efd2b81098f97caa01c27c63aa66040bbaf44 (diff) | |
download | bcm5719-llvm-7f426869ba3d7210aeb2d71e8550f4c30db9e32a.tar.gz bcm5719-llvm-7f426869ba3d7210aeb2d71e8550f4c30db9e32a.zip |
[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
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 5a9580cf440..271cfc58c95 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(); |