Non optimizable objc_retainBlock calls are not forwarding.
authorMichael Gottesman <mgottesman@apple.com>
Thu, 28 Mar 2013 20:11:30 +0000 (20:11 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Thu, 28 Mar 2013 20:11:30 +0000 (20:11 +0000)
commit3832eff354eea32f92acf3f5176c6213cb65848b
treeaf7db708f8621603db5611a92d0026ec0f747870
parent0d92a3c600b453f3aa4f50ba0189ccb1dbbc1580
Non optimizable objc_retainBlock calls are not forwarding.

Since we handle optimizable objc_retainBlocks through strength reduction
in OptimizableIndividualCalls, we know that all code after that point
will only see non-optimizable objc_retainBlock calls. IsForwarding is
only called by functions after that point, so it is ok to just classify
objc_retainBlock as non-forwarding.

<rdar://problem/13249661>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178285 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/ObjCARC/ObjCARC.h
test/Transforms/ObjCARC/retain-block.ll