From e9a04ae141dd61c14d612f97a00de703b1e5197e Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Mon, 18 Apr 2016 21:53:55 +0000 Subject: [PATCH] CachePruning: fix typo, we accumulate file size here, not time From: Mehdi Amini llvm-svn: 266685 --- 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 0a3aef8..94a1668 100644 --- a/llvm/lib/Support/CachePruning.cpp +++ b/llvm/lib/Support/CachePruning.cpp @@ -76,7 +76,7 @@ bool CachePruning::prune() { return; TotalSize += FileStatus.getSize(); FileSizes.insert( - std::make_pair(FileAccessTime.seconds(), std::string(Path))); + std::make_pair(FileStatus.getSize(), std::string(Path))); }; // Walk the entire directory cache, looking for unused files. -- 2.7.4