diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-14 20:26:45 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-14 20:26:45 +0000 |
commit | 409183ff7c9cedfb36b644444f116979aef115ff (patch) | |
tree | bc6302d3c3dcbfbe72f836d74bace75a1b88e57a /clang/lib/Frontend/PCHReader.cpp | |
parent | 2cfe91379b2e6a9f113ba0c911f626a3cea99e5a (diff) | |
download | bcm5719-llvm-409183ff7c9cedfb36b644444f116979aef115ff.tar.gz bcm5719-llvm-409183ff7c9cedfb36b644444f116979aef115ff.zip |
Increase the max PCH level for declarations to 7. Add a FromPCH flag to types.
llvm-svn: 108354
Diffstat (limited to 'clang/lib/Frontend/PCHReader.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHReader.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Frontend/PCHReader.cpp b/clang/lib/Frontend/PCHReader.cpp index cb0be410b5a..56b77b1e94c 100644 --- a/clang/lib/Frontend/PCHReader.cpp +++ b/clang/lib/Frontend/PCHReader.cpp @@ -2626,8 +2626,10 @@ QualType PCHReader::GetType(pch::TypeID ID) { Index -= pch::NUM_PREDEF_TYPE_IDS; //assert(Index < TypesLoaded.size() && "Type index out-of-range"); - if (TypesLoaded[Index].isNull()) + if (TypesLoaded[Index].isNull()) { TypesLoaded[Index] = ReadTypeRecord(TypeOffsets[Index]); + TypesLoaded[Index]->setFromPCH(); + } return TypesLoaded[Index].withFastQualifiers(FastQuals); } |