summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-04-12 20:26:39 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-04-12 20:26:39 +0000
commit6e4d0d6546774d21a8f4f55c591df42557ca6c62 (patch)
tree6f0ea3c5b0b34f09e070d86d13e43d119530f6c2 /lib
parent46758a894f5d9ca7adc8ec03dd6adeb36b7eadb3 (diff)
downloadllvm-6e4d0d6546774d21a8f4f55c591df42557ca6c62.tar.gz
llvm-6e4d0d6546774d21a8f4f55c591df42557ca6c62.tar.bz2
llvm-6e4d0d6546774d21a8f4f55c591df42557ca6c62.tar.xz
Fix bug introduced in previous commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 371dfd1c34..a54bd7a2a5 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -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);