From d63287ff980518ae2cefc225a2a33ff75ccd18e6 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Thu, 13 Jan 2011 21:28:55 +0000 Subject: [PATCH] Temporary workaround for an i386 crash in LiveDebugVariables. llvm-svn: 123400 --- lib/CodeGen/LiveDebugVariables.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/LiveDebugVariables.cpp b/lib/CodeGen/LiveDebugVariables.cpp index 1eab6bb7ec8..5e8e30959c9 100644 --- a/lib/CodeGen/LiveDebugVariables.cpp +++ b/lib/CodeGen/LiveDebugVariables.cpp @@ -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; }