[llvm] r213417 - DebugInfo: Assert that all abstract scopes are subprograms, rather than conditionalizing.

David Blaikie dblaikie at gmail.com
Fri Jul 18 15:27:00 PDT 2014


Author: dblaikie
Date: Fri Jul 18 17:26:59 2014
New Revision: 213417

URL: http://llvm.org/viewvc/llvm-project?rev=213417&view=rev
Log:
DebugInfo: Assert that all abstract scopes are subprograms, rather than conditionalizing.

There's nothing else these should ever be...

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

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=213417&r1=213416&r2=213417&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Fri Jul 18 17:26:59 2014
@@ -1569,8 +1569,7 @@ void DwarfDebug::endFunction(const Machi
   // Construct abstract scopes.
   for (LexicalScope *AScope : LScopes.getAbstractScopesList()) {
     DISubprogram SP(AScope->getScopeNode());
-    if (!SP.isSubprogram())
-      continue;
+    assert(SP.isSubprogram());
     // Collect info for variables that were optimized out.
     DIArray Variables = SP.getVariables();
     for (unsigned i = 0, e = Variables.getNumElements(); i != e; ++i) {





More information about the llvm-commits mailing list