diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-28 04:59:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-28 04:59:43 +0000 |
commit | 07541a271152687dd8d443de48b563dc08a65cbd (patch) | |
tree | ed0a6416ddbe88bdf9ff4cc5082a64e469b1631c | |
parent | c7e65fb7d850d010a141420d7b1d8ddad484d3b3 (diff) |
Make sched class unsigned
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4336 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/TargetSchedInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/TargetSchedInfo.cpp b/lib/Target/TargetSchedInfo.cpp index 9eb3d98d1d..40e822dc14 100644 --- 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]; } |