Just like in regular escape analysis, loads and stores through
authorDan Gohman <gohman@apple.com>
Mon, 13 Feb 2012 22:57:02 +0000 (22:57 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 13 Feb 2012 22:57:02 +0000 (22:57 +0000)
commita3b08d68bd281773b0300222edb4149abce4b4b8
treec5e30e534f4abdbc00371de7854a29f94e6af78f
parent60ebb1947faed42e493179e569c5db0c01d38a2a
Just like in regular escape analysis, loads and stores through
(but not of) a block pointer do not cause the block pointer to
escape. This fixes rdar://10803830.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150424 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ObjCARC.cpp
test/Transforms/ObjCARC/retain-block-load.ll [new file with mode: 0644]