Include all the fields so we can correctly emit DW_TAG_structure_type for C++ structs.
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 2 Nov 2012 23:33:23 +0000 (23:33 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 2 Nov 2012 23:33:23 +0000 (23:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167334 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/DIBuilder.cpp

index c331304df103a41ae649a621a80e826a797ecd3c..152b825523dac711ef03fda6a52eee7daf75479f 100644 (file)
@@ -492,7 +492,8 @@ DIType DIBuilder::createStructType(DIDescriptor Context, StringRef Name,
     NULL,
     Elements,
     ConstantInt::get(Type::getInt32Ty(VMContext), RunTimeLang),
-    Constant::getNullValue(Type::getInt32Ty(VMContext))
+    ConstantInt::get(Type::getInt32Ty(VMContext), 0),
+    ConstantInt::get(Type::getInt32Ty(VMContext), 0),
   };
   return DIType(MDNode::get(VMContext, Elts));
 }