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)
commit49f9885a2ac6a5b9bd85d66588fccab0de25923b
tree4a18c40c2d86ef9a626f8f7ca6437764cdc12b01
parent158fdf699e3e25b55e3661518782e47768d5bf9a
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>.

llvm-svn: 178285
llvm/lib/Transforms/ObjCARC/ObjCARC.h
llvm/test/Transforms/ObjCARC/retain-block.ll