Stay rational; don't assert trying to take the square root of a negative value.
authorNick Lewycky <nicholas@mxc.ca>
Wed, 1 Aug 2012 09:14:36 +0000 (09:14 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 1 Aug 2012 09:14:36 +0000 (09:14 +0000)
commit6ce2471806316ae9e1c7715f703c380d4f4311b6
tree3ebc81d806c7416849a29dad540e4ad6451e98ee
parent147d9e05116518461653695a6022f6109f0eb936
Stay rational; don't assert trying to take the square root of a negative value.
If it's negative, the loop is already proven to be infinite. Fixes PR13489!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161107 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
test/Analysis/ScalarEvolution/SolveQuadraticEquation.ll