1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Temporary workaround for an i386 crash in LiveDebugVariables.

llvm-svn: 123400
This commit is contained in:
Jakob Stoklund Olesen 2011-01-13 21:28:55 +00:00
parent 0f2b9d9dc4
commit d63287ff98

View File

@ -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;
}