OSDN Git Service

Dwarf Debug: Remove some cargo-cult type uniquing. Scopes do not have
authorAdrian Prantl <aprantl@apple.com>
Fri, 21 Mar 2014 22:16:32 +0000 (22:16 +0000)
committerAdrian Prantl <aprantl@apple.com>
Fri, 21 Mar 2014 22:16:32 +0000 (22:16 +0000)
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

index 027f0b8..af7c3c6 100644 (file)
@@ -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<DIE *, 8> Children;
   DIE *ObjectPointer = NULL;