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 | 05a0b55e76a33f604c1e28d2b4ff3cfdca927ad2 (patch) | |
tree | 649ae2376960b313d24f04917efee7fc17895fc5 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | 4bc5e389600f8c6f03e7b37e105d8ea9a02cb583 (diff) | |
download | bcm5719-llvm-05a0b55e76a33f604c1e28d2b4ff3cfdca927ad2.tar.gz bcm5719-llvm-05a0b55e76a33f604c1e28d2b4ff3cfdca927ad2.zip |
Temporary workaround for an i386 crash in LiveDebugVariables.
llvm-svn: 123400
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugVariables.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index 1eab6bb7ec8..5e8e30959c9 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.cpp +++ b/llvm/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; } |