diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-09-06 18:46:00 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-09-06 18:46:00 +0000 |
commit | e42279cda481b48138d2119f4a4bbce7077f0a72 (patch) | |
tree | 7ed0b8521bcd57f6ab0b94ad41a5a637f84e7470 /lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | |
parent | 5930eabe0fdc48c02c5af500aa5b1c5b732848b1 (diff) | |
download | external_llvm-e42279cda481b48138d2119f4a4bbce7077f0a72.zip external_llvm-e42279cda481b48138d2119f4a4bbce7077f0a72.tar.gz external_llvm-e42279cda481b48138d2119f4a4bbce7077f0a72.tar.bz2 |
Debug Info: Use identifier to reference DIType in containing type field of
a DICompositeType.
Verifier is updated accordingly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190190 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 6db54d2..f9ea545 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/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))); |