[PATCH] D131701: [CodeGen][ObjC] Call synthesized copy constructor/assignment operator functions in getter/setter functions of non-trivial C struct properties
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 11 10:51:07 PDT 2022
ahatanak created this revision.
ahatanak added a reviewer: rjmccall.
ahatanak added a project: clang.
Herald added a project: All.
ahatanak requested review of this revision.
This fixes a bug where the getter/setter functions were doing a trivial copy instead of calling the synthesized functions that copy non-trivial C struct types.
This fixes https://github.com/llvm/llvm-project/issues/56680.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131701
Files:
clang/lib/CodeGen/CGObjC.cpp
clang/test/CodeGenObjC/nontrivial-c-struct-property.m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131701.451907.patch
Type: text/x-patch
Size: 8055 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220811/4b73e213/attachment-0001.bin>
More information about the cfe-commits
mailing list