[llvm] r209611 - DwarfUnit: Remove some misleading no-op code introduced in r204162.

David Blaikie dblaikie at gmail.com
Sun May 25 22:32:22 PDT 2014


Author: dblaikie
Date: Mon May 26 00:32:21 2014
New Revision: 209611

URL: http://llvm.org/viewvc/llvm-project?rev=209611&view=rev
Log:
DwarfUnit: Remove some misleading no-op code introduced in r204162.

Post commit review feedback from Manman called this out, but it looks
like it slipped through the cracks.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp?rev=209611&r1=209610&r2=209611&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp Mon May 26 00:32:21 2014
@@ -1377,10 +1377,6 @@ DIE *DwarfUnit::getOrCreateSubprogramDIE
   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;
 





More information about the llvm-commits mailing list