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:
c7e65fb
)
Make sched class unsigned
author
Chris Lattner
<sabre@nondot.org>
Mon, 28 Oct 2002 04:59:43 +0000
(
04:59
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 28 Oct 2002 04:59:43 +0000
(
04:59
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4336
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/TargetSchedInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/TargetSchedInfo.cpp
b/lib/Target/TargetSchedInfo.cpp
index 9eb3d98d1df481c32b9a424588c7a1afa9d3a28a..40e822dc14b7baf4533a018e1d98958e14766042 100644
(file)
--- a/
lib/Target/TargetSchedInfo.cpp
+++ b/
lib/Target/TargetSchedInfo.cpp
@@
-126,7
+126,7
@@
MachineSchedInfo::computeInstrResources(const std::vector<InstrRUsage>&
// First get the resource usage information from the class resource usages.
for (MachineOpCode op = 0; op < numOpCodes; ++op) {
InstrSchedClass sc = getSchedClass(op);
- assert(sc
>= 0 && sc
< numSchedClasses);
+ assert(sc < numSchedClasses);
instrRUsages[op] = instrRUForClasses[sc];
}