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-Tag: android-x86-7.1-r4~59542 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d2e8729d1d43fe6640bdf2d9e997561ff332a195;p=android-x86%2Fexternal-llvm.git DebugInfo: Assert that all abstract scopes are subprograms, rather than conditionalizing. There's nothing else these should ever be... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213417 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 8731c887510..8064209ba37 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/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) {