Fixed an infinite loop in the block escape in analysis in ObjCARC caused by 2x blocks...
authorMichael Gottesman <mgottesman@apple.com>
Sun, 13 Jan 2013 22:12:06 +0000 (22:12 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Sun, 13 Jan 2013 22:12:06 +0000 (22:12 +0000)
commit6056b85bb5e863f3b174ed21bd70e22a03ed61f7
tree6939da537bb45a4812166763b4b856e4fca4ca74
parent50c023d4960ee492014391b6b84a259e1e02da82
Fixed an infinite loop in the block escape in analysis in ObjCARC caused by 2x blocks each assigned a value via a phi-node causing each to depend on the other.

A test case is provided as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172368 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ObjCARC.cpp
test/Transforms/ObjCARC/dont-infinite-loop-during-block-escape-analysis.ll [new file with mode: 0644]