From db5371b3bb5405c70dc5ee8a8695999e37789228 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 18 Jul 2014 22:26:59 +0000 Subject: [PATCH] DebugInfo: Assert that all abstract scopes are subprograms, rather than conditionalizing. There's nothing else these should ever be... llvm-svn: 213417 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 8731c88..8064209 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1569,8 +1569,7 @@ void DwarfDebug::endFunction(const MachineFunction *MF) { // 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) { -- 2.7.4