[PATCH] D129008: [Clang][OpenMP] Fix the issue that globalization doesn't work with byval struct function argument
Shilei Tian via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 24 19:00:40 PST 2023
tianshilei1992 added a subscriber: aaron.ballman.
tianshilei1992 added inline comments.
================
Comment at: clang/lib/CodeGen/CGDecl.cpp:2501
+ LValue Src = MakeAddrLValue(Arg.getIndirectAddress(), Ty);
+ callCStructCopyConstructor(Dst, Src);
+ PushCleanupIfNeeded(Arg.getIndirectAddress());
----------------
Hi @aaron.ballman, is it possible to invoke the copy constructor of a struct/class here, either it is user defined or default one?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129008/new/
https://reviews.llvm.org/D129008
More information about the cfe-commits
mailing list