[llvm-commits] [llvm] r129501 - /llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp
Chris Lattner
sabre at nondot.org
Wed Apr 13 19:27:25 PDT 2011
Author: lattner
Date: Wed Apr 13 21:27:25 2011
New Revision: 129501
URL: http://llvm.org/viewvc/llvm-project?rev=129501&view=rev
Log:
fix a couple -Wsign-compare warnings.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp?rev=129501&r1=129500&r2=129501&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp Wed Apr 13 21:27:25 2011
@@ -44,8 +44,8 @@
public:
static char ID; // Pass ID, replacement for typeid
LoopUnroll(int T = -1, int C = -1, int P = -1) : LoopPass(ID) {
- CurrentThreshold = (T == -1) ? UnrollThreshold : T;
- CurrentCount = (C == -1) ? UnrollCount : C;
+ CurrentThreshold = (T == -1) ? UnrollThreshold : unsigned(T);
+ CurrentCount = (C == -1) ? UnrollCount : unsigned(C);
CurrentAllowPartial = (P == -1) ? UnrollAllowPartial : (bool)P;
UserThreshold = (T != -1) || (UnrollThreshold.getNumOccurrences() > 0);
More information about the llvm-commits
mailing list