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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209611 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfUnit.cpp

index 8382990a6c3853c3a590de8301e21595901a0d27..8d8c6181e1dd4de79cd802dd6869b064137821c6 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;