DwarfUnit: Remove some misleading no-op code introduced in r204162.
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 26 May 2014 05:32:21 +0000 (05:32 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 26 May 2014 05:32:21 +0000 (05:32 +0000)
Post commit review feedback from Manman called this out, but it looks
like it slipped through the cracks.

llvm-svn: 209611

llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp

index 8382990..8d8c618 100644 (file)
@@ -1377,10 +1377,6 @@ DIE *DwarfUnit::getOrCreateSubprogramDIE(DISubprogram SP) {
   DIScope Context = resolve(SP.getContext());
   DIE *ContextDIE = getOrCreateContextDIE(Context);
 
-  // Unique declarations based on the ODR, where applicable.
-  SP = DISubprogram(DD->resolve(SP.getRef()));
-  assert(SP.Verify());
-
   if (DIE *SPDie = getDIE(SP))
     return SPDie;