From: David Blaikie Date: Fri, 2 Nov 2012 23:33:23 +0000 (+0000) Subject: Include all the fields so we can correctly emit DW_TAG_structure_type for C++ structs. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=78c796e20303a99641841a663865c3d9db4464f7;p=oota-llvm.git Include all the fields so we can correctly emit DW_TAG_structure_type for C++ structs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167334 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/DIBuilder.cpp b/lib/VMCore/DIBuilder.cpp index c331304df10..152b825523d 100644 --- a/lib/VMCore/DIBuilder.cpp +++ b/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)); }