Intervals are half-open.

llvm-svn: 115694
This commit is contained in:
Jakob Stoklund Olesen 2010-10-05 22:19:29 +00:00
parent 907d86db22
commit b46d32367f
1 changed files with 1 additions and 1 deletions

View File

@ -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));