aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-01-28 21:08:20 +0000
committerDevang Patel <dpatel@apple.com>2009-01-28 21:08:20 +0000
commitf9235748567e065b3b3c3bd48c3d4dfe1d664e8b (patch)
tree866ebbc144e01285505bca381d3a0a8aa9074a7f /lib
parent6e733d34ca487ab7ff8a6def018a933620393869 (diff)
downloadexternal_llvm-f9235748567e065b3b3c3bd48c3d4dfe1d664e8b.zip
external_llvm-f9235748567e065b3b3c3bd48c3d4dfe1d664e8b.tar.gz
external_llvm-f9235748567e065b3b3c3bd48c3d4dfe1d664e8b.tar.bz2
Do not forget to derived type while constructing an array type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfWriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index 63fb68b..8d66812 100644
--- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
@@ -1869,6 +1869,8 @@ private:
if (CTy->getTag() == DW_TAG_vector_type)
AddUInt(&Buffer, DW_AT_GNU_vector, DW_FORM_flag, 1);
+ // Emit derived type.
+ AddType(DW_Unit, &Buffer, CTy->getTypeDerivedFrom());
DIArray Elements = CTy->getTypeArray();
// Construct an anonymous type for index type.