[PATCH] D97872: [clang] Don't assert in EmitAggregateCopy on trivial_abi types
Reid Kleckner via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 8 15:57:57 PST 2021
rnk added inline comments.
================
Comment at: clang/test/CodeGenCXX/trivial_abi.cpp:267
+// PR42961
+Small (*fp)() = []() -> Small {};
----------------
Please check for the IR for the `__invoke` member of the lambda class. I think it's at least a bit interesting that we create two allocas, store to them, memcpy from one to the other, and then load out of the second.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97872/new/
https://reviews.llvm.org/D97872
More information about the cfe-commits
mailing list