This is an archive of the discontinued LLVM Phabricator instance.

[ObjC][ARC] Don't enter the cleanup scope if the initializer expression isn't an ExprWithCleanups
ClosedPublic

Authored by ahatanak on Apr 28 2021, 5:56 PM.

Details

Summary

This patch fixes a bug where a temporary ObjC pointer is released before the end of the full expression.

This fixes PR50043.

rdar://77030453

Diff Detail

Event Timeline

ahatanak requested review of this revision.Apr 28 2021, 5:56 PM
ahatanak created this revision.
rjmccall accepted this revision.Apr 28 2021, 7:03 PM

Okay, LGTM.

This revision is now accepted and ready to land.Apr 28 2021, 7:03 PM
This revision was landed with ongoing or failed builds.Apr 29 2021, 4:07 PM
This revision was automatically updated to reflect the committed changes.