diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-01-13 21:28:55 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-01-13 21:28:55 +0000 |
commit | a6ada9f725b0015c419a7ef661e833f9e9b26ff8 (patch) | |
tree | 934b29cc0c4e3c22ca68a2c2a72496051db7b393 /lib/CodeGen/LiveDebugVariables.cpp | |
parent | 4f28c1c71450c711e96aa283de53739d8b4504cd (diff) |
Temporary workaround for an i386 crash in LiveDebugVariables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r-- | lib/CodeGen/LiveDebugVariables.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveDebugVariables.cpp b/lib/CodeGen/LiveDebugVariables.cpp index 1eab6bb7ec..5e8e30959c 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; } |