projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
957840b
)
Out of bound reference.
author
Evan Cheng
<evan.cheng@apple.com>
Wed, 21 Feb 2007 02:27:39 +0000
(
02:27
+0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Wed, 21 Feb 2007 02:27:39 +0000
(
02:27
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34461
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/LiveIntervalAnalysis.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/LiveIntervalAnalysis.cpp
b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 1a598e8ea91636a73accd03c25ec2152c264f1e0..85ff1c182dc6602f333bc460283336c10a070af4 100644
(file)
--- a/
lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/
lib/CodeGen/LiveIntervalAnalysis.cpp
@@
-1451,10
+1451,10
@@
bool LiveIntervals::differingRegisterClasses(unsigned RegA,
/// reg between indexes Start and End.
bool
LiveIntervals::hasRegisterUse(unsigned Reg, unsigned Start, unsigned End) {
- for (unsigned Index = Start+InstrSlots::NUM; Index
!=
End;
+ for (unsigned Index = Start+InstrSlots::NUM; Index
<
End;
Index += InstrSlots::NUM) {
// Skip deleted instructions
- while (Index
!=
End && !getInstructionFromIndex(Index))
+ while (Index
<
End && !getInstructionFromIndex(Index))
Index += InstrSlots::NUM;
if (Index >= End) break;