* Silence signed/unsigned warnings

* Make it compile with GCC 3.0.4


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1787 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-02-24 23:01:50 +00:00
parent 1ddf664f74
commit dfb8b95c2d
4 changed files with 8 additions and 6 deletions

View File

@ -161,7 +161,7 @@ public: // accessor functions to query chosen schedule
}
inline InstrGroup* getIGroup (cycles_t c) {
if (c >= groups.size())
if ((unsigned)c >= groups.size())
groups.resize(c+1);
if (groups[c] == NULL)
groups[c] = new InstrGroup(nslots);
@ -169,7 +169,7 @@ public: // accessor functions to query chosen schedule
}
inline const InstrGroup* getIGroup (cycles_t c) const {
assert(c < groups.size());
assert((unsigned)c < groups.size());
return groups[c];
}

View File

@ -26,7 +26,8 @@
#include "llvm/Target/MachineSchedInfo.h"
#include "Support/CommandLine.h"
#include <list>
#include <hash_set>
#include <ext/hash_set>
#include <ostream>
class Method;
class MachineInstr;
class SchedulingManager;

View File

@ -161,7 +161,7 @@ public: // accessor functions to query chosen schedule
}
inline InstrGroup* getIGroup (cycles_t c) {
if (c >= groups.size())
if ((unsigned)c >= groups.size())
groups.resize(c+1);
if (groups[c] == NULL)
groups[c] = new InstrGroup(nslots);
@ -169,7 +169,7 @@ public: // accessor functions to query chosen schedule
}
inline const InstrGroup* getIGroup (cycles_t c) const {
assert(c < groups.size());
assert((unsigned)c < groups.size());
return groups[c];
}

View File

@ -26,7 +26,8 @@
#include "llvm/Target/MachineSchedInfo.h"
#include "Support/CommandLine.h"
#include <list>
#include <hash_set>
#include <ext/hash_set>
#include <ostream>
class Method;
class MachineInstr;
class SchedulingManager;