summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHReader.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-08-21 00:27:50 +0000
committerDouglas Gregor <dgregor@apple.com>2009-08-21 00:27:50 +0000
commita8eed7dabb397b709476a237ccc1bd012d08b727 (patch)
tree6d87baed3992509f3dc461e5f50a36b91b93e0f1 /clang/lib/Frontend/PCHReader.cpp
parent97628d6a4ce229f2936d2b34231bb7dfa432f810 (diff)
downloadbcm5719-llvm-a8eed7dabb397b709476a237ccc1bd012d08b727.tar.gz
bcm5719-llvm-a8eed7dabb397b709476a237ccc1bd012d08b727.zip
Make the new Objective-C "id" and "Class" redefinition types special
types that are preloaded by the PCH file. Fixes PCH breakage introduced in r79248. llvm-svn: 79583
Diffstat (limited to 'clang/lib/Frontend/PCHReader.cpp')
-rw-r--r--clang/lib/Frontend/PCHReader.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHReader.cpp b/clang/lib/Frontend/PCHReader.cpp
index aab5dd8783f..b368124f4f6 100644
--- a/clang/lib/Frontend/PCHReader.cpp
+++ b/clang/lib/Frontend/PCHReader.cpp
@@ -1562,6 +1562,12 @@ void PCHReader::InitializeContext(ASTContext &Ctx) {
Context->setsigjmp_bufDecl(Tag->getDecl());
}
}
+ if (unsigned ObjCIdRedef
+ = SpecialTypes[pch::SPECIAL_TYPE_OBJC_ID_REDEFINITION])
+ Context->ObjCIdRedefinitionType = GetType(ObjCIdRedef);
+ if (unsigned ObjCClassRedef
+ = SpecialTypes[pch::SPECIAL_TYPE_OBJC_CLASS_REDEFINITION])
+ Context->ObjCClassRedefinitionType = GetType(ObjCClassRedef);
}
/// \brief Retrieve the name of the original source file name
OpenPOWER on IntegriCloud