Fix this code so that it doesn't try to iterate through a std::vector
authorDan Gohman <gohman@apple.com>
Wed, 30 Sep 2009 20:54:16 +0000 (20:54 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 30 Sep 2009 20:54:16 +0000 (20:54 +0000)
commit5184635eda68a0cdcd39c958ccc11ba1843bcc7b
tree718ce2d7bf5590452ba09218741077b86e55a1b4
parent3a90c9b8edb53ea1ea57d94f7ab256608b5b30c6
Fix this code so that it doesn't try to iterate through a std::vector
while calling changeImmediateDominator, which removes elements from the
vector. This fixes PR5097.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83166 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LoopSimplify.cpp