commit | 990567cb60e8530ba01b41d4e056e32b44b95ec0 | [log] [tgz] |
---|---|---|
author | John McCall <rjmccall@apple.com> | Wed Jul 27 01:07:15 2011 +0000 |
committer | John McCall <rjmccall@apple.com> | Wed Jul 27 01:07:15 2011 +0000 |
tree | 8f85e629bf057a38f2f2cf4f4e744c50a6f1fb1f | |
parent | dfb6ae1d8d114772bd91b7079c7e4bf4b517e63c [diff] |
Clean up the analysis of the collection operand to ObjC for-in statements; specifically, make sure to close over any temporaries or cleanups it might require. In ARC, this has implications for the lifetime of the collection, so emit it with a retain and release it upon exit from the loop. rdar://problem/9817306 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136204 91177308-0d34-0410-b5e6-96231b3b80d8