summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-09-06 18:46:00 +0000
committerManman Ren <manman.ren@gmail.com>2013-09-06 18:46:00 +0000
commitd8f798ea97351ff42c6793c12953f90522d5e4a5 (patch)
treecf6ea434bed0ec4a86bf10043a6320c962d7f7e0 /llvm/lib/CodeGen/AsmPrinter
parent277206fa282715dcd3b62800b46be574b96f7dbb (diff)
downloadbcm5719-llvm-d8f798ea97351ff42c6793c12953f90522d5e4a5.tar.gz
bcm5719-llvm-d8f798ea97351ff42c6793c12953f90522d5e4a5.zip
Debug Info: Use identifier to reference DIType in containing type field of
a DICompositeType. Verifier is updated accordingly. llvm-svn: 190190
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 6db54d2fafb..f9ea545483e 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -1083,7 +1083,7 @@ void CompileUnit::constructTypeDIE(DIE &Buffer, DICompositeType CTy) {
if (CTy.isAppleBlockExtension())
addFlag(&Buffer, dwarf::DW_AT_APPLE_block);
- DICompositeType ContainingType = CTy.getContainingType();
+ DICompositeType ContainingType(DD->resolve(CTy.getContainingType()));
if (DIDescriptor(ContainingType).isCompositeType())
addDIEEntry(&Buffer, dwarf::DW_AT_containing_type, dwarf::DW_FORM_ref4,
getOrCreateTypeDIE(DIType(ContainingType)));
OpenPOWER on IntegriCloud