summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-07-08 22:39:20 +0000
committerDevang Patel <dpatel@apple.com>2010-07-08 22:39:20 +0000
commit4c6bd6612f3a9cba0bf71f4a9df01f0851970d3e (patch)
tree3e28487883cfbb03c87078b7344646583594ed7d /llvm
parenta992445ff2949c7c848b5695bd180c8029e37468 (diff)
downloadbcm5719-llvm-4c6bd6612f3a9cba0bf71f4a9df01f0851970d3e.tar.gz
bcm5719-llvm-4c6bd6612f3a9cba0bf71f4a9df01f0851970d3e.zip
Relax assertion. In optimized code, it is possible that first instruction is coming from a inlined function.
This fixes PR7596 . llvm-svn: 107923
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 959644641ab..2e9ba40f6ed 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud