[all-commits] [llvm/llvm-project] 2e1d9e: [ObjC][ARC] Don't enter the cleanup scope if the i...
Akira Hatanaka via All-commits
all-commits at lists.llvm.org
Thu Apr 29 16:07:43 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2e1d9ebd46b826b06f0a5882e992e3d84335f268
https://github.com/llvm/llvm-project/commit/2e1d9ebd46b826b06f0a5882e992e3d84335f268
Author: Akira Hatanaka <ahatanaka at apple.com>
Date: 2021-04-29 (Thu, 29 Apr 2021)
Changed paths:
M clang/lib/CodeGen/CGDecl.cpp
M clang/test/CodeGenObjCXX/arc-blocks.mm
M clang/test/CodeGenObjCXX/arc.mm
Log Message:
-----------
[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
More information about the All-commits
mailing list