[llvm-commits] [llvm] r107923 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Devang Patel dpatel at apple.com
Thu Jul 8 15:39:21 PDT 2010


Author: dpatel
Date: Thu Jul  8 17:39:20 2010
New Revision: 107923

URL: http://llvm.org/viewvc/llvm-project?rev=107923&view=rev
Log:
Relax assertion. In optimized code, it is possible that first instruction is coming from a inlined function.
This fixes PR7596 .


Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=107923&r1=107922&r2=107923&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Thu Jul  8 17:39:20 2010
@@ -1504,7 +1504,7 @@
   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;
   }





More information about the llvm-commits mailing list