Don't try to loop on iterators that are potentially invalidated inside the loop....
authorNick Lewycky <nicholas@mxc.ca>
Sat, 12 Nov 2011 03:09:12 +0000 (03:09 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 12 Nov 2011 03:09:12 +0000 (03:09 +0000)
commitd7ecff49d9190262da48a9f5815c01138fd54ebc
treed9d2d5c69a14a2744ae55a3dff0e79d70d61b39e
parent7386612a1635090acf010aaa4c7f68b181fcfe65
Don't try to loop on iterators that are potentially invalidated inside the loop. Fixes PR11361!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144454 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
test/Transforms/LoopUnroll/pr11361.ll [new file with mode: 0644]