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 55b7ef5a81
commit 8f2df3aa3c
1 changed files with 1 additions and 1 deletions

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