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.