diff options
Diffstat (limited to 'llvm/lib/CodeGen/InstrSched')
| -rw-r--r-- | llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/InstrSched/SchedPriorities.h | 3 | 
2 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp index edf84d4cadc..dafa8353bb3 100644 --- a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp +++ b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp @@ -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];    } diff --git a/llvm/lib/CodeGen/InstrSched/SchedPriorities.h b/llvm/lib/CodeGen/InstrSched/SchedPriorities.h index 7cfc4c0f354..52b5b9f0080 100644 --- a/llvm/lib/CodeGen/InstrSched/SchedPriorities.h +++ b/llvm/lib/CodeGen/InstrSched/SchedPriorities.h @@ -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;  | 

