From: Adrian Prantl Date: Fri, 21 Mar 2014 22:16:32 +0000 (+0000) Subject: Dwarf Debug: Remove some cargo-cult type uniquing. Scopes do not have X-Git-Tag: v01.01.07.01~10410 X-Git-Url: https://git.ti.com/gitweb?p=opencl%2Fllvm.git;a=commitdiff_plain;h=0fb178b831ae3c216df739d476289986bded33ee Dwarf Debug: Remove some cargo-cult type uniquing. Scopes do not have an ID, so this is a noop. Thanks Manman for catching this! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204528 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 027f0b89a5..af7c3c6435 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -604,7 +604,7 @@ DIE *DwarfDebug::constructScopeDIE(DwarfCompileUnit *TheCU, return NULL; // Unique scope where applicable. - DIScope DS(resolve(DIScope(Scope->getScopeNode()).getRef())); + DIScope DS(Scope->getScopeNode()); SmallVector Children; DIE *ObjectPointer = NULL;