mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-27 06:35:30 +00:00
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
This commit is contained in:
parent
4f28c1c714
commit
a6ada9f725
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user