From bc1b4e73e640c3def95996e083450779c97bf162 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 2 Nov 2012 23:33:23 +0000 Subject: [PATCH] Include all the fields so we can correctly emit DW_TAG_structure_type for C++ structs. llvm-svn: 167334 --- llvm/lib/VMCore/DIBuilder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/VMCore/DIBuilder.cpp b/llvm/lib/VMCore/DIBuilder.cpp index c331304..152b825 100644 --- a/llvm/lib/VMCore/DIBuilder.cpp +++ b/llvm/lib/VMCore/DIBuilder.cpp @@ -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)); } -- 2.7.4