diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-25 18:40:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-25 18:40:08 +0000 |
commit | 219c1418153d9b85035957b0e15af75e42f65854 (patch) | |
tree | 140b54241dd150889a87d99ce308607e540beb20 /lib/Analysis/ScalarEvolution.cpp | |
parent | 988d174e9699c06432efbf2ef3f268bd645179c4 (diff) |
Patch to support MSVC, contributed by Morten Ofstad
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index fdfda32ee4..f84c9e9859 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -1984,7 +1984,7 @@ SolveQuadraticEquation(const SCEVAddRecExpr *AddRec) { cast<ConstantUInt>(ConstantExpr::getCast(SqrtTerm, SqrtTerm->getType()->getUnsignedVersion())); uint64_t SqrtValV = SqrtVal->getValue(); - uint64_t SqrtValV2 = (uint64_t)sqrt(SqrtValV); + uint64_t SqrtValV2 = (uint64_t)sqrt((double)SqrtValV); // The square root might not be precise for arbitrary 64-bit integer // values. Do some sanity checks to ensure it's correct. if (SqrtValV2*SqrtValV2 > SqrtValV || |