InequalityGraph::node() can create new nodes, invalidating iterators across
authorNick Lewycky <nicholas@mxc.ca>
Tue, 27 May 2008 00:59:05 +0000 (00:59 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 27 May 2008 00:59:05 +0000 (00:59 +0000)
commit6918a9141e93aea51d542fc3e6da332140144f13
tree71c292dc4ec504ce969eb7d5a5e40cf42b51d641
parent70ef629d46cd78f6e2e8051797b0436fc4a895b0
InequalityGraph::node() can create new nodes, invalidating iterators across
the set of nodes. Fix makeEqual to handle this by creating the new node first
then iterating across them second.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51573 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/PredicateSimplifier.cpp