summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2009-12-22 00:11:50 +0000
committerLang Hames <lhames@gmail.com>2009-12-22 00:11:50 +0000
commit4c052261de0a8d4084361bdce6241f0dac3e86fa (patch)
tree6241191c9db2f47df536a4b4c5f4d3b4bb12a0ed /llvm/include
parent2bb0765bb4b56babcaa4bd353b7aa79e59211d6a (diff)
downloadbcm5719-llvm-4c052261de0a8d4084361bdce6241f0dac3e86fa.tar.gz
bcm5719-llvm-4c052261de0a8d4084361bdce6241f0dac3e86fa.zip
Changed slot index ranges for MachineBasicBlocks to be exclusive of endpoint.
This fixes an in-place update bug where code inserted at the end of basic blocks may not be covered by existing intervals which were live across the entire block. It is also consistent with the way ranges are specified for live intervals. llvm-svn: 91859
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/CodeGen/SlotIndexes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/SlotIndexes.h b/llvm/include/llvm/CodeGen/SlotIndexes.h
index f4eaffa40d3..163642a1beb 100644
--- a/llvm/include/llvm/CodeGen/SlotIndexes.h
+++ b/llvm/include/llvm/CodeGen/SlotIndexes.h
@@ -579,7 +579,7 @@ namespace llvm {
(I == idx2MBBMap.end() && idx2MBBMap.size()>0)) ? (I-1): I;
assert(J != idx2MBBMap.end() && J->first <= index &&
- index <= getMBBEndIdx(J->second) &&
+ index < getMBBEndIdx(J->second) &&
"index does not correspond to an MBB");
return J->second;
}
OpenPOWER on IntegriCloud