[PATCH] D45124: [CodeGen] Record if a C++ record is a trivial type
Aaron Smith via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 23 13:49:19 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rC337736: [CodeGen] Record if a C++ record is a trivial type (authored by asmith, committed by ).
Repository:
rC Clang
https://reviews.llvm.org/D45124
Files:
lib/CodeGen/CGDebugInfo.cpp
Index: lib/CodeGen/CGDebugInfo.cpp
===================================================================
--- lib/CodeGen/CGDebugInfo.cpp
+++ lib/CodeGen/CGDebugInfo.cpp
@@ -2908,6 +2908,10 @@
Flags |= llvm::DINode::FlagTypePassByReference;
else
Flags |= llvm::DINode::FlagTypePassByValue;
+
+ // Record if a C++ record is trivial type.
+ if (CXXRD->isTrivial())
+ Flags |= llvm::DINode::FlagTrivial;
}
llvm::DICompositeType *RealDecl = DBuilder.createReplaceableCompositeType(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45124.156871.patch
Type: text/x-patch
Size: 513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180723/ae947d00/attachment.bin>
More information about the cfe-commits
mailing list