Skip to content

Commit

Permalink
Include all the fields so we can correctly emit DW_TAG_structure_type…
Browse files Browse the repository at this point in the history
… for C++ structs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167334 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dwblaikie committed Nov 2, 2012
1 parent 0c31e43 commit 78c796e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/VMCore/DIBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 78c796e

Please sign in to comment.