From 6925a9f9cc0b9d34cfbc19d9208c416e293ca516 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 25 Jul 2004 05:43:53 +0000 Subject: [PATCH] Fix a bug in the range remover git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15188 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/LiveInterval.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index 11eb0fe7de4..e5331530807 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; } -- 2.34.1