summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjC.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-08-09 17:23:49 +0000
committerDouglas Gregor <dgregor@apple.com>2011-08-09 17:23:49 +0000
commit636e200675277d09c4a09b31552cca9341b515e2 (patch)
treee639d488918199b7c2439a66ac60b2c6abc228b7 /clang/lib/CodeGen/CGObjC.cpp
parentda96006975eaf438ecec4c245a0b521c08ea594d (diff)
downloadbcm5719-llvm-636e200675277d09c4a09b31552cca9341b515e2.tar.gz
bcm5719-llvm-636e200675277d09c4a09b31552cca9341b515e2.zip
Move the creation of the record type for the state of Objective-C fast
enumerations from the ASTContext into CodeGen, so that we don't need to serialize it to AST files. This appears to be the last of the low-hanging fruit for SpecialTypes. llvm-svn: 137124
Diffstat (limited to 'clang/lib/CodeGen/CGObjC.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp
index 944a0bd2a2c..565cf3a5b24 100644
--- a/clang/lib/CodeGen/CGObjC.cpp
+++ b/clang/lib/CodeGen/CGObjC.cpp
@@ -997,7 +997,7 @@ void CodeGenFunction::EmitObjCForCollectionStmt(const ObjCForCollectionStmt &S){
JumpDest LoopEnd = getJumpDestInCurrentScope("forcoll.end");
// Fast enumeration state.
- QualType StateTy = getContext().getObjCFastEnumerationStateType();
+ QualType StateTy = CGM.getObjCFastEnumerationStateType();
llvm::Value *StatePtr = CreateMemTemp(StateTy, "state.ptr");
EmitNullInitialization(StatePtr, StateTy);
OpenPOWER on IntegriCloud