1
0
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:
Alkis Evlogimenos 2004-04-12 20:26:39 +00:00
parent fd1cfeeb1d
commit 40d8a6802b

View File

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