Skip to content
Commit 2e1d9ebd authored by Akira Hatanaka's avatar Akira Hatanaka
Browse files

[ObjC][ARC] Don't enter the cleanup scope if the initializer expression

isn't an ExprWithCleanups

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

This fixes PR50043.

rdar://77030453

Differential Revision: https://reviews.llvm.org/D101502
parent 6b302402
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment