mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Relax assertion. In optimized code, it is possible that first instruction is coming from a inlined function.
This fixes PR7596 . git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107923 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c930cbcada
commit
0afbf23453
@ -1504,7 +1504,7 @@ DIE *DwarfDebug::constructInlinedScopeDIE(DbgScope *Scope) {
|
|||||||
const MCSymbol *StartLabel = getLabelBeforeInsn(RI->first);
|
const MCSymbol *StartLabel = getLabelBeforeInsn(RI->first);
|
||||||
const MCSymbol *EndLabel = getLabelAfterInsn(RI->second);
|
const MCSymbol *EndLabel = getLabelAfterInsn(RI->second);
|
||||||
|
|
||||||
if (StartLabel == FunctionBeginSym || EndLabel == 0) {
|
if (StartLabel == 0 || EndLabel == 0) {
|
||||||
assert (0 && "Unexpected Start and End labels for a inlined scope!");
|
assert (0 && "Unexpected Start and End labels for a inlined scope!");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user