]> granicus.if.org Git - clang/commit
[PTH] Fix data length used for stat cache entries
authorReid Kleckner <rnk@google.com>
Mon, 2 Nov 2015 20:47:31 +0000 (20:47 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 2 Nov 2015 20:47:31 +0000 (20:47 +0000)
commit8dc69ad4aec84a77e313ab73f6ca0d2bc8824bd5
tree2768f9ee182221a899ea324e5b1104a12cf2f2a3
parentd2809eac2a3f384be5727e8effbf99810f7d5d66
[PTH] Fix data length used for stat cache entries

This came up in a boost build, which apparently uses PTH. This was
broken in r187619 when we migrated it to uses llvm::fs instead of raw
stat calls.

Constructing a test case with a hash table collision in-tree is tough.
Instead, I have a pending change to OnDiskChainedHashTable that asserts
that the reported length of the data agrees with the data actually
written. All of the existing in-tree tests find the bug with this
assert.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251828 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/CacheTokens.cpp