r337736 - [CodeGen] Record if a C++ record is a trivial type
Aaron Smith via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 23 13:49:07 PDT 2018
Author: asmith
Date: Mon Jul 23 13:49:07 2018
New Revision: 337736
URL: http://llvm.org/viewvc/llvm-project?rev=337736&view=rev
Log:
[CodeGen] Record if a C++ record is a trivial type
Summary: This has a dependence on D45122
Reviewers: rnk, zturner, llvm-commits, aleksandr.urakov
Reviewed By: rnk
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D45124
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=337736&r1=337735&r2=337736&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon Jul 23 13:49:07 2018
@@ -2908,6 +2908,10 @@ llvm::DICompositeType *CGDebugInfo::Crea
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(
More information about the cfe-commits
mailing list