commit | c69e35985765cda9572312e7551298ff4d0550aa | [log] [tgz] |
---|---|---|
author | Shoaib Meenai <smeenai@fb.com> | Wed May 16 04:52:18 2018 +0000 |
committer | Shoaib Meenai <smeenai@fb.com> | Wed May 16 04:52:18 2018 +0000 |
tree | a7cbf1a1559b091b3367c41885efcef08567fcdc | |
parent | 0302e7b44f0080597b8153cd8d247df503aca68b [diff] |
[ObjCARC] Prevent code motion into a catchswitch A catchswitch must be the only non-phi instruction in its basic block; attempting to move a retain or release into a catchswitch basic block will result in invalid IR. Explicitly mark a CFG hazard in this case to prevent the code motion. Differential Revision: https://reviews.llvm.org/D46482 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332430 91177308-0d34-0410-b5e6-96231b3b80d8