]> granicus.if.org Git - clang/commit
Fix two small but very nasty bugs in the PCH writer for method pools:
authorDouglas Gregor <dgregor@apple.com>
Fri, 24 Apr 2009 21:49:02 +0000 (21:49 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 24 Apr 2009 21:49:02 +0000 (21:49 +0000)
commita67e58c8fa03c2f1aa7609bf5a436d1adba75eef
tree10b99cad0055c7801ff80dcfb42d4dd037bc9c94
parentf0aaf7a59729a4ae0146e3464ee987745be95829
Fix two small but very nasty bugs in the PCH writer for method pools:
  (1) Make sure to pad on-disk hash tables with 4 bytes, not 2, since
  the reader assumes that bucket data is aligned on 4-byte
  boundaries.
  (2) Don't emit the number of factory methods twice. This was
  throwing off the data counts and therefore causing lookups to
  fail. I've added asserts so that this class of error cannot happen
  again.

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