]> granicus.if.org Git - llvm/commit
[ObjCARC] Pass the correct BasicBlock to fix assertion failure.
authorAkira Hatanaka <ahatanaka@apple.com>
Thu, 31 Aug 2017 18:27:47 +0000 (18:27 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Thu, 31 Aug 2017 18:27:47 +0000 (18:27 +0000)
commitfec731bad89dc60aad7a72a7feb841eeeb64e7bf
treeb0f80cafc05c3983233c99b4a2f4de3568a22654
parent3143eac5c52ae9f234ca8e38ccdbc0199cea676f
[ObjCARC] Pass the correct BasicBlock to fix assertion failure.

The BasicBlock passed to FindPredecessorRetainWithSafePath should be the
parent block of Autorelease. This fixes a crash that occurs in
FindDependencies when StartInst is not in StartBB.

rdar://problem/33866381

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312266 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
test/Transforms/ObjCARC/rv.ll