[PATCH] D93273: [CodeGen][ObjC] Destroy callee-destroyed arguments in the caller function when the receiver is nil
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 14 21:20:00 PST 2020
ahatanak created this revision.
ahatanak added a reviewer: rjmccall.
ahatanak added a project: clang.
Herald added subscribers: ributzka, jkorous.
ahatanak requested review of this revision.
Callee-destroyed arguments to a method have to be destroyed in the caller function when the receiver is nil as the method doesn't get executed. This fixes PR48207.
rdar://71808391
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D93273
Files:
clang/lib/CodeGen/CGObjCMac.cpp
clang/test/CodeGenObjC/objc-dispatch-null-check.m
clang/test/CodeGenObjC/strong-in-c-struct.m
clang/test/CodeGenObjC/weak-in-c-struct.m
clang/test/CodeGenObjCXX/objc-struct-cxx-abi.mm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93273.311782.patch
Type: text/x-patch
Size: 8624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201215/a1149fa8/attachment-0001.bin>
More information about the cfe-commits
mailing list