Relax assertion. In optimized code, it is possible that first instruction is coming from a inlined function.

This fixes PR7596 .

llvm-svn: 107923
This commit is contained in:
Devang Patel 2010-07-08 22:39:20 +00:00
parent a992445ff2
commit 4c6bd6612f
1 changed files with 1 additions and 1 deletions

View File

@ -1504,7 +1504,7 @@ DIE *DwarfDebug::constructInlinedScopeDIE(DbgScope *Scope) {
const MCSymbol *StartLabel = getLabelBeforeInsn(RI->first);
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!");
return 0;
}