From: David Blaikie Date: Fri, 18 Jul 2014 22:26:59 +0000 (+0000) Subject: DebugInfo: Assert that all abstract scopes are subprograms, rather than conditionalizing. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db5371b3bb5405c70dc5ee8a8695999e37789228;p=platform%2Fupstream%2Fllvm.git DebugInfo: Assert that all abstract scopes are subprograms, rather than conditionalizing. There's nothing else these should ever be... llvm-svn: 213417 --- 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) {