Establish the iteration variable of an ObjC for-in loop before
authorJohn McCall <rjmccall@apple.com>
Tue, 22 Feb 2011 07:16:58 +0000 (07:16 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 22 Feb 2011 07:16:58 +0000 (07:16 +0000)
commit57b3b6a60856eaec30fd876a8a3face8f7e3ad7b
tree06247fed84349aebc8f4d39b8c2dc7c110f07324
parent34695856c0e67b3765b46304cc71b5d2cd5b71c7
Establish the iteration variable of an ObjC for-in loop before
emitting the collection expression.  Fixes some really, really broken
code.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126193 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDecl.cpp
lib/CodeGen/CGObjC.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGenObjC/for-in.m