fix a couple -Wsign-compare warnings.

llvm-svn: 129501
This commit is contained in:
Chris Lattner 2011-04-14 02:27:25 +00:00
parent 0b9c16295a
commit e9409fb80a

View File

@ -44,8 +44,8 @@ namespace {
public: public:
static char ID; // Pass ID, replacement for typeid static char ID; // Pass ID, replacement for typeid
LoopUnroll(int T = -1, int C = -1, int P = -1) : LoopPass(ID) { LoopUnroll(int T = -1, int C = -1, int P = -1) : LoopPass(ID) {
CurrentThreshold = (T == -1) ? UnrollThreshold : T; CurrentThreshold = (T == -1) ? UnrollThreshold : unsigned(T);
CurrentCount = (C == -1) ? UnrollCount : C; CurrentCount = (C == -1) ? UnrollCount : unsigned(C);
CurrentAllowPartial = (P == -1) ? UnrollAllowPartial : (bool)P; CurrentAllowPartial = (P == -1) ? UnrollAllowPartial : (bool)P;
UserThreshold = (T != -1) || (UnrollThreshold.getNumOccurrences() > 0); UserThreshold = (T != -1) || (UnrollThreshold.getNumOccurrences() > 0);