summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHWriter.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/PCHWriter.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/PCHWriter.cpp')
-rw-r--r--clang/lib/Frontend/PCHWriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHWriter.cpp b/clang/lib/Frontend/PCHWriter.cpp
index d9c6b1bb7d8..48a1c9d5e3a 100644
--- a/clang/lib/Frontend/PCHWriter.cpp
+++ b/clang/lib/Frontend/PCHWriter.cpp
@@ -1846,6 +1846,8 @@ void PCHWriter::WritePCH(Sema &SemaRef, MemorizeStatCalls *StatCalls,
AddTypeRef(Context.getFILEType(), Record);
AddTypeRef(Context.getjmp_bufType(), Record);
AddTypeRef(Context.getsigjmp_bufType(), Record);
+ AddTypeRef(Context.ObjCIdRedefinitionType, Record);
+ AddTypeRef(Context.ObjCClassRedefinitionType, Record);
Stream.EmitRecord(pch::SPECIAL_TYPES, Record);
// Keep writing types and declarations until all types and
OpenPOWER on IntegriCloud