[llvm] r266685 - CachePruning: fix typo, we accumulate file size here, not time

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 18 14:53:55 PDT 2016


Author: mehdi_amini
Date: Mon Apr 18 16:53:55 2016
New Revision: 266685

URL: http://llvm.org/viewvc/llvm-project?rev=266685&view=rev
Log:
CachePruning: fix typo, we accumulate file size here, not time

From: Mehdi Amini <mehdi.amini at apple.com>

Modified:
    llvm/trunk/lib/Support/CachePruning.cpp

Modified: llvm/trunk/lib/Support/CachePruning.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/CachePruning.cpp?rev=266685&r1=266684&r2=266685&view=diff
==============================================================================
--- llvm/trunk/lib/Support/CachePruning.cpp (original)
+++ llvm/trunk/lib/Support/CachePruning.cpp Mon Apr 18 16:53:55 2016
@@ -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.




More information about the llvm-commits mailing list