[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.

llvm-svn: 251828
This commit is contained in:
Reid Kleckner 2015-11-02 20:47:31 +00:00
parent 746426b487
commit f7e61478df
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ public:
}
unsigned getRepresentationLength() const {
return Kind == IsNoExist ? 0 : 4 + 4 + 2 + 8 + 8;
return Kind == IsNoExist ? 0 : 4 * 8;
}
};