If the step value is a constant zero, the loop isn't going to terminate. Fixes
authorNick Lewycky <nicholas@mxc.ca>
Thu, 28 Jun 2012 23:44:57 +0000 (23:44 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 28 Jun 2012 23:44:57 +0000 (23:44 +0000)
commit4d3bba5be47ec159ad3489793248acc812d75575
tree020ba7b2636ed17b2c57199d012165338960a1fc
parent917f97c580c3ba16faa291884d6600cf2b275c99
If the step value is a constant zero, the loop isn't going to terminate. Fixes
the assert reported in PR13228!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159393 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
test/Analysis/ScalarEvolution/how-far-to-zero.ll [new file with mode: 0644]