Temporary workaround for an i386 crash in LiveDebugVariables.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 13 Jan 2011 21:28:55 +0000 (21:28 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 13 Jan 2011 21:28:55 +0000 (21:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123400 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveDebugVariables.cpp

index 1eab6bb7ec81df5362271d8ace6901bb6888fd1b..5e8e30959c9c1c7cebb783d756605ccd8fa98b82 100644 (file)
@@ -591,7 +591,8 @@ findInsertLocation(MachineBasicBlock *MBB, SlotIndex Idx, DebugLoc &DL,
 
   // 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;
   }