mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Temporary workaround for an i386 crash in LiveDebugVariables.
llvm-svn: 123400
This commit is contained in:
parent
0f2b9d9dc4
commit
d63287ff98
@ -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