[llvm-commits] [llvm] r123400 - /llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Thu Jan 13 13:28:55 PST 2011


Author: stoklund
Date: Thu Jan 13 15:28:55 2011
New Revision: 123400

URL: http://llvm.org/viewvc/llvm-project?rev=123400&view=rev
Log:
Temporary workaround for an i386 crash in LiveDebugVariables.

Modified:
    llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp

Modified: llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp?rev=123400&r1=123399&r2=123400&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp Thu Jan 13 15:28:55 2011
@@ -591,7 +591,8 @@
 
   // Don't insert anything after the first terminator.
   MachineBasicBlock::iterator Term = MBB->getFirstTerminator();
-  if (Term != MBB->end() && Idx >= LIS.getInstructionIndex(Term)) {
+  if (Term != MBB->end() && !LIS.isNotInMIMap(Term) &&
+      Idx >= LIS.getInstructionIndex(Term)) {
     DL = Term->getDebugLoc();
     return Term;
   }





More information about the llvm-commits mailing list