[PATCH] D138796: ObjCARC: Try to fix faulty tests

Akira Hatanaka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 28 11:36:18 PST 2022


ahatanak added a comment.

ARC optimizer was previously removing the retain/release pair, but it's not clear to me why it was safe to do so. There is a load that loads an ivar of the object before the call to `@llvm.objc.release`, so the object has to be kept alive at least until that point.

I have to investigate when it stopped removing the pair.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138796/new/

https://reviews.llvm.org/D138796



More information about the llvm-commits mailing list