diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-11-18 10:57:27 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-11-18 10:57:27 +0000 |
commit | 9bef70609cdee0bf7e641a02a56890610a5a7125 (patch) | |
tree | bd3271547e49c2d7986d2b033c720271f288706d | |
parent | 67c8c4cababc846aab461910a50fd373b35b11aa (diff) |
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
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 53d3ab5f04..128b19778f 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<uint64_t>(abs(intEV - intIV))) return true; return false; |