summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SlotIndexes.h
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
commit74ab5eeffbd70f2387338e3ee8195be9f73e6dd8 (patch)
tree69244a4a36283b0db2934bf3526a92ff6a44b9ae /include/llvm/CodeGen/SlotIndexes.h
parent87710f04e551655c0c98fb7c0bfd9ec58224a804 (diff)
downloadllvm-74ab5eeffbd70f2387338e3ee8195be9f73e6dd8.tar.gz
llvm-74ab5eeffbd70f2387338e3ee8195be9f73e6dd8.tar.bz2
llvm-74ab5eeffbd70f2387338e3ee8195be9f73e6dd8.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91859 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SlotIndexes.h')
-rw-r--r--include/llvm/CodeGen/SlotIndexes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SlotIndexes.h b/include/llvm/CodeGen/SlotIndexes.h
index f4eaffa40d..163642a1be 100644
--- a/include/llvm/CodeGen/SlotIndexes.h
+++ b/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;
}