diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-10-19 00:38:02 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-10-19 00:38:02 +0000 |
commit | 72be390e1341e8e6729648690dd1ae040996d611 (patch) | |
tree | 8799b96497af9b2870b4efde15be00ff6b1678be /clang/lib/Serialization/Module.cpp | |
parent | a9eebc3153b871a64a081df19d2eb70fb0e74299 (diff) | |
download | bcm5719-llvm-72be390e1341e8e6729648690dd1ae040996d611.tar.gz bcm5719-llvm-72be390e1341e8e6729648690dd1ae040996d611.zip |
Move the set of files to be validated in an AST file into the control
block, so the input files are validated early on, before we've
committed to loading the AST file. This (accidentally) fixed a but
wherein the main file used to generate the AST file would *not* be
validated by the existing validation logic.
At the moment, this leads to some duplication of filenames between the
source manager block and input-file blocks, as well as validation
logic. This will be handled via an upcoming patch.
llvm-svn: 166251
Diffstat (limited to 'clang/lib/Serialization/Module.cpp')
-rw-r--r-- | clang/lib/Serialization/Module.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Serialization/Module.cpp b/clang/lib/Serialization/Module.cpp index b6204f9478e..09ea754d44d 100644 --- a/clang/lib/Serialization/Module.cpp +++ b/clang/lib/Serialization/Module.cpp @@ -25,7 +25,7 @@ ModuleFile::ModuleFile(ModuleKind Kind, unsigned Generation) Generation(Generation), SizeInBits(0), LocalNumSLocEntries(0), SLocEntryBaseID(0), SLocEntryBaseOffset(0), SLocEntryOffsets(0), - SLocFileOffsets(0), LocalNumIdentifiers(0), + LocalNumIdentifiers(0), IdentifierOffsets(0), BaseIdentifierID(0), IdentifierTableData(0), IdentifierLookupTable(0), LocalNumMacros(0), MacroOffsets(0), |