summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveInterval.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-25 05:43:53 +0000
committerChris Lattner <sabre@nondot.org>2004-07-25 05:43:53 +0000
commit6925a9f9cc0b9d34cfbc19d9208c416e293ca516 (patch)
tree39e4fa42b6a16b49f55d83d2c773813d0a61d556 /lib/CodeGen/LiveInterval.cpp
parentc83e40d1b6582155286f1044623d544dea20202e (diff)
downloadllvm-6925a9f9cc0b9d34cfbc19d9208c416e293ca516.tar.gz
llvm-6925a9f9cc0b9d34cfbc19d9208c416e293ca516.tar.bz2
llvm-6925a9f9cc0b9d34cfbc19d9208c416e293ca516.tar.xz
Fix a bug in the range remover
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15188 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveInterval.cpp')
-rw-r--r--lib/CodeGen/LiveInterval.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp
index 11eb0fe7de..e533153080 100644
--- a/lib/CodeGen/LiveInterval.cpp
+++ b/lib/CodeGen/LiveInterval.cpp
@@ -223,7 +223,7 @@ void LiveInterval::removeRange(unsigned Start, unsigned End) {
// Otherwise if the span we are removing is at the end of the LiveRange,
// adjust the other way.
if (I->end == End) {
- I->start = Start;
+ I->end = Start;
return;
}