diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-05 22:19:29 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-05 22:19:29 +0000 |
commit | dbc36091ff7be76d22105b67db73e18224bebb2f (patch) | |
tree | bd6cd2d747a4f76820579d1880a398944c265425 /lib/CodeGen | |
parent | e583c892d8e274cdec17c125b023e2e976df5737 (diff) |
Intervals are half-open.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115694 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SplitKit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SplitKit.cpp b/lib/CodeGen/SplitKit.cpp index cce97fdb67..bd164a30d9 100644 --- a/lib/CodeGen/SplitKit.cpp +++ b/lib/CodeGen/SplitKit.cpp @@ -550,7 +550,7 @@ void LiveIntervalMap::addSimpleRange(SlotIndex Start, SlotIndex End, // ParentVNI is a complex value. We must map per MBB. MachineFunction::iterator MBB = lis_.getMBBFromIndex(Start); - MachineFunction::iterator MBBE = lis_.getMBBFromIndex(End); + MachineFunction::iterator MBBE = lis_.getMBBFromIndex(End.getPrevSlot()); if (MBB == MBBE) { li_->addRange(LiveRange(Start, End, VNI)); |