summaryrefslogtreecommitdiffstats
path: root/lib/IR/DIBuilder.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-08-08 07:40:37 +0000
committerEric Christopher <echristo@gmail.com>2013-08-08 07:40:37 +0000
commitdc1363f5af47542a602c80e726749bc06d8ef3f8 (patch)
tree1a40cc31a04e00da38310920dd3d125dbcf8b92c /lib/IR/DIBuilder.cpp
parentafdd1f8a851349e2b3cdc6d441043ac3f4cdb9b9 (diff)
downloadexternal_llvm-dc1363f5af47542a602c80e726749bc06d8ef3f8.zip
external_llvm-dc1363f5af47542a602c80e726749bc06d8ef3f8.tar.gz
external_llvm-dc1363f5af47542a602c80e726749bc06d8ef3f8.tar.bz2
Make sure that if we're going to attempt to add a type to a DIE that
the type exists. Fix up cases where we weren't checking for optional types and add an assert to addType to make sure we catch this in the future. Fix up a testcase that was using the tag for DW_TAG_array_type when it meant DW_TAG_enumeration_type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/DIBuilder.cpp')
-rw-r--r--lib/IR/DIBuilder.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/IR/DIBuilder.cpp b/lib/IR/DIBuilder.cpp
index 3005f77..e36d028 100644
--- a/lib/IR/DIBuilder.cpp
+++ b/lib/IR/DIBuilder.cpp
@@ -759,7 +759,6 @@ DICompositeType DIBuilder::createArrayType(uint64_t Size, uint64_t AlignInBits,
/// createVectorType - Create debugging information entry for a vector.
DICompositeType DIBuilder::createVectorType(uint64_t Size, uint64_t AlignInBits,
DIType Ty, DIArray Subscripts) {
-
// A vector is an array type with the FlagVector flag applied.
Value *Elts[] = {
GetTagConstant(VMContext, dwarf::DW_TAG_array_type),