From 9bef70609cdee0bf7e641a02a56890610a5a7125 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 18 Nov 2008 10:57:27 +0000 Subject: [PATCH] Cast to remove warning about comparing signed and unsigned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59518 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/IndVarSimplify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 53d3ab5f048..128b19778fc 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/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;