]> granicus.if.org Git - clang/commitdiff
[CGDebugInfo] Set NonTrivial DIFlag to a c++ record if it's not trivial
authorAaron Smith <aaron.smith@microsoft.com>
Tue, 26 Feb 2019 03:49:05 +0000 (03:49 +0000)
committerAaron Smith <aaron.smith@microsoft.com>
Tue, 26 Feb 2019 03:49:05 +0000 (03:49 +0000)
This goes with https://reviews.llvm.org/D44406

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@354843 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index e2da77f553452847fc5ff3d6075b41fc8510721d..4fc2a35d50b07071615c4b11cba628c33445a4be 100644 (file)
@@ -3031,6 +3031,8 @@ llvm::DICompositeType *CGDebugInfo::CreateLimitedType(const RecordType *Ty) {
     // Record if a C++ record is trivial type.
     if (CXXRD->isTrivial())
       Flags |= llvm::DINode::FlagTrivial;
+    else
+      Flags |= llvm::DINode::FlagNonTrivial;
   }
 
   llvm::DICompositeType *RealDecl = DBuilder.createReplaceableCompositeType(