[PATCH] D44968: [ObjC] Generalize NRVO to cover non-trivial C structs

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 27 20:37:57 PDT 2018


ahatanak created this revision.
ahatanak added reviewers: rjmccall, doug.gregor, rsmith.

r326307 and r327870 made changes that allowed using non-trivial C
structs with fields qualified with __strong or __weak. This commit generalizes NRVO, which could only be applied to C++ structs, to cover non-trivial C structs.


Repository:
  rC Clang

https://reviews.llvm.org/D44968

Files:
  lib/CodeGen/CGDecl.cpp
  lib/Sema/SemaDecl.cpp
  lib/Sema/SemaStmt.cpp
  test/CodeGenObjC/objc-non-trivial-struct-nrvo.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44968.140034.patch
Type: text/x-patch
Size: 8282 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180328/9e935216/attachment.bin>


More information about the cfe-commits mailing list