diff options
author | Anders Carlsson <andersca@mac.com> | 2010-05-22 17:35:42 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-05-22 17:35:42 +0000 |
commit | 1884eb0b5c55edda4893ddec45e7dbad79758782 (patch) | |
tree | c1daa9aef185f4ba861efc8c83a3a18bb5b12201 /lib/CodeGen/CGObjC.cpp | |
parent | fb2db4657dc1e305c98d0c48fb1009a9f65b337a (diff) |
Re-land the fix for PR7139.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjC.cpp')
-rw-r--r-- | lib/CodeGen/CGObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjC.cpp b/lib/CodeGen/CGObjC.cpp index 6efba44b0e..7c842a9498 100644 --- a/lib/CodeGen/CGObjC.cpp +++ b/lib/CodeGen/CGObjC.cpp @@ -640,7 +640,7 @@ void CodeGenFunction::EmitObjCForCollectionStmt(const ObjCForCollectionStmt &S){ // Fast enumeration state. QualType StateTy = getContext().getObjCFastEnumerationStateType(); llvm::Value *StatePtr = CreateMemTemp(StateTy, "state.ptr"); - EmitMemSetToZero(StatePtr, StateTy); + EmitNullInitialization(StatePtr, StateTy); // Number of elements in the items array. static const unsigned NumItems = 16; |