mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Fix bug introduced in previous commit.
llvm-svn: 12872
This commit is contained in:
parent
fd1cfeeb1d
commit
40d8a6802b
@ -138,7 +138,7 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) {
|
||||
if (tii.isMoveInstr(*mii, srcReg, dstReg) &&
|
||||
rep(srcReg) == rep(dstReg)) {
|
||||
// remove from def list
|
||||
Interval& interval = getOrCreateInterval(dstReg);
|
||||
Interval& interval = getOrCreateInterval(rep(dstReg));
|
||||
unsigned defIndex = getInstructionIndex(mii);
|
||||
Interval::Defs::iterator d = std::lower_bound(
|
||||
interval.defs.begin(), interval.defs.end(), defIndex);
|
||||
|
Loading…
Reference in New Issue
Block a user