Skip to content
Commit 430512ed authored by Akira Hatanaka's avatar Akira Hatanaka
Browse files

[ObjC][ARC] Don't move a retain call living outside a loop into the loop

body

We started seeing cases where ARC optimizer would move retain calls into
loop bodies, causing imbalance in the number of retain and release
calls, after changes were made to delete inert ARC calls since the inert
calls that used to block code motion are gone.

Fix the bug by setting the CFG hazard flag when visiting a loop header.

rdar://problem/56908836
parent 63cef621
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment