diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-08-09 17:23:49 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-08-09 17:23:49 +0000 |
commit | 636e200675277d09c4a09b31552cca9341b515e2 (patch) | |
tree | e639d488918199b7c2439a66ac60b2c6abc228b7 /clang/lib/CodeGen/CGObjC.cpp | |
parent | da96006975eaf438ecec4c245a0b521c08ea594d (diff) | |
download | bcm5719-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.cpp | 2 |
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); |