mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
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
This commit is contained in:
parent
5fcb6fd985
commit
d2e8729d1d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user