diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-18 21:53:55 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-18 21:53:55 +0000 |
commit | e9a04ae141dd61c14d612f97a00de703b1e5197e (patch) | |
tree | 0968c38a92432d48bb3030d2cbb5f61bc734a4f8 /llvm/lib/Support/CachePruning.cpp | |
parent | b629c77692980a03cf4529cd39aff82f65e0478c (diff) | |
download | bcm5719-llvm-e9a04ae141dd61c14d612f97a00de703b1e5197e.tar.gz bcm5719-llvm-e9a04ae141dd61c14d612f97a00de703b1e5197e.zip |
CachePruning: fix typo, we accumulate file size here, not time
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 266685
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 0a3aef807e4..94a1668710d 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. |