Skip to content

Commit

Permalink
[CodeGen] Record if a C++ record is a trivial type
Browse files Browse the repository at this point in the history
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

llvm-svn: 337736
  • Loading branch information
aaronsm committed Jul 23, 2018
1 parent 4345df3 commit 044326c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clang/lib/CodeGen/CGDebugInfo.cpp
Expand Up @@ -2908,6 +2908,10 @@ llvm::DICompositeType *CGDebugInfo::CreateLimitedType(const RecordType *Ty) {
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(
Expand Down

0 comments on commit 044326c

Please sign in to comment.