diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-04-12 20:26:39 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-04-12 20:26:39 +0000 |
commit | 6e4d0d6546774d21a8f4f55c591df42557ca6c62 (patch) | |
tree | 6f0ea3c5b0b34f09e070d86d13e43d119530f6c2 /lib | |
parent | 46758a894f5d9ca7adc8ec03dd6adeb36b7eadb3 (diff) | |
download | external_llvm-6e4d0d6546774d21a8f4f55c591df42557ca6c62.zip external_llvm-6e4d0d6546774d21a8f4f55c591df42557ca6c62.tar.gz external_llvm-6e4d0d6546774d21a8f4f55c591df42557ca6c62.tar.bz2 |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 371dfd1..a54bd7a 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); |