Fix the objc_autoreleasedReturnValue optimization code to locate
authorDan Gohman <gohman@apple.com>
Mon, 25 Jun 2012 19:47:37 +0000 (19:47 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 25 Jun 2012 19:47:37 +0000 (19:47 +0000)
commit58fb3401fa63174cd37281d167b16d90e84a47be
tree43df538c7f8323faf73ce797f5d6853052caa759
parenta4e6397fd9f2fbbd6affdfb0738813918cb21da0
Fix the objc_autoreleasedReturnValue optimization code to locate
the call correctly even in the case where it is an invoke. This
fixes rdar://11714057.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159157 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ObjCARC.cpp
test/Transforms/ObjCARC/contract-testcases.ll