[llvm-commits] [llvm] r59518 - /llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
Devang Patel
dpatel at apple.com
Tue Nov 18 09:59:38 PST 2008
On Nov 18, 2008, at 2:57 AM, Bill Wendling wrote:
> Author: void
> Date: Tue Nov 18 04:57:27 2008
> New Revision: 59518
>
> URL: http://llvm.org/viewvc/llvm-project?rev=59518&view=rev
> Log:
> Cast to remove warning about comparing signed and unsigned.
Thanks!
>
>
> Modified:
> llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
>
> Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=59518&r1=59517&r2=59518&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
> +++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Tue Nov 18
> 04:57:27 2008
> @@ -732,7 +732,7 @@
>
> // If the iteration range can be handled by SIToFPInst then use it.
> APInt Max = APInt::getSignedMaxValue(32);
> - if (Max.getZExtValue() > abs(intEV - intIV))
> + if (Max.getZExtValue() > static_cast<uint64_t>(abs(intEV - intIV)))
> return true;
>
> return false;
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
-
Devang
More information about the llvm-commits
mailing list