diff options
| author | Devang Patel <dpatel@apple.com> | 2010-07-08 22:39:20 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2010-07-08 22:39:20 +0000 |
| commit | 1b2773bcc4e3443aa1e981c7849e941b00503f08 (patch) | |
| tree | a9587077867ef942cd45f1474b40164dd2b0d0f9 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
| parent | 29b3696ea35b833f392f87faddff61f24a496833 (diff) | |
| download | external_llvm-1b2773bcc4e3443aa1e981c7849e941b00503f08.zip external_llvm-1b2773bcc4e3443aa1e981c7849e941b00503f08.tar.gz external_llvm-1b2773bcc4e3443aa1e981c7849e941b00503f08.tar.bz2 | |
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
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 9596446..2e9ba40 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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; } |
