mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
DebugInfo: Assert rather than conditionalizing when a CU's subprogram list contains declarations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209039 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e792969b4f
commit
b3e18972ef
@ -846,8 +846,8 @@ void DwarfDebug::collectDeadVariables() {
|
||||
continue;
|
||||
assert(SP.isSubprogram() &&
|
||||
"CU's subprogram list contains a non-subprogram");
|
||||
if (!SP.isDefinition())
|
||||
continue;
|
||||
assert(SP.isDefinition() &&
|
||||
"CU's subprogram list contains a subprogram declaration");
|
||||
DIArray Variables = SP.getVariables();
|
||||
if (Variables.getNumElements() == 0)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user