From cf194e9a27eb8ff3f44a5e2339bb4e67514408e9 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 18 Nov 2008 10:57:27 +0000 Subject: Cast to remove warning about comparing signed and unsigned. llvm-svn: 59518 --- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 53d3ab5f048..128b19778fc 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -732,7 +732,7 @@ static bool useSIToFPInst(ConstantFP &InitV, ConstantFP &ExitV, // 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(abs(intEV - intIV))) return true; return false; -- cgit v1.2.3