Rewrite a loop to avoid using iterators pointing to
authorDale Johannesen <dalej@apple.com>
Fri, 23 May 2008 17:19:02 +0000 (17:19 +0000)
committerDale Johannesen <dalej@apple.com>
Fri, 23 May 2008 17:19:02 +0000 (17:19 +0000)
commit679860e31bd7b8f043ba1ccdc5990cb9bafd9055
treecd321e181bad56287ce8ff9cc0e0d977d3669803
parentb737a64a853edaa2dc30182611ab18f1cc6a2491
Rewrite a loop to avoid using iterators pointing to
elements that have been erased.  Based on a patch
by Nicolas Capens.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51485 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BranchFolding.cpp