summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHReader.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-24 21:49:02 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-24 21:49:02 +0000
commit4647cfac32b29cc201284cee3b528dad2a54c76c (patch)
treef41229a628f00b18d7a7504c80767893510a80d1 /clang/lib/Frontend/PCHReader.cpp
parent56cb14c8741f39124ec3cd523391597f950f517f (diff)
downloadbcm5719-llvm-4647cfac32b29cc201284cee3b528dad2a54c76c.tar.gz
bcm5719-llvm-4647cfac32b29cc201284cee3b528dad2a54c76c.zip
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. llvm-svn: 69991
Diffstat (limited to 'clang/lib/Frontend/PCHReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud