aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-11-02 23:33:23 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-11-02 23:33:23 +0000
commit78c796e20303a99641841a663865c3d9db4464f7 (patch)
tree3bcf1c48f4f8b09bac0c3ad2ccf1b85c333364ba /lib/VMCore
parent0c31e43ff3565f6b801793c916ba102050bcc128 (diff)
downloadexternal_llvm-78c796e20303a99641841a663865c3d9db4464f7.zip
external_llvm-78c796e20303a99641841a663865c3d9db4464f7.tar.gz
external_llvm-78c796e20303a99641841a663865c3d9db4464f7.tar.bz2
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
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/DIBuilder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/DIBuilder.cpp b/lib/VMCore/DIBuilder.cpp
index c331304..152b825 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));
}