From 0fb178b831ae3c216df739d476289986bded33ee Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Fri, 21 Mar 2014 22:16:32 +0000 Subject: [PATCH] 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 --- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 027f0b89a51..af7c3c6435e 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; -- 2.34.1