From a2ea8f5e755b09ac75883ba9defb3b4e348e005e 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266685 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/CachePruning.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Support/CachePruning.cpp b/lib/Support/CachePruning.cpp index 0a3aef807e4..94a1668710d 100644 --- a/lib/Support/CachePruning.cpp +++ b/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.