Bugfix for etforest updating. Contributed by Daniel Berlin.
authorChris Lattner <sabre@nondot.org>
Mon, 9 Jan 2006 07:58:01 +0000 (07:58 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 9 Jan 2006 07:58:01 +0000 (07:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25152 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Dominators.cpp

index d328c3015cf74416e95368af89ad4bf2573113eb..6021b33941bc77886424f19c4be89c824616cdfa 100644 (file)
@@ -613,7 +613,7 @@ void ETNode::Split() {
 
   // Find the leftmost occurrence in the rightmost subtree, then splay
   // around it.
-  for (right = rightmost->Right; rightmost->Left; rightmost = rightmost->Left);
+  for (right = rightmost->Right; right->Left; right = right->Left);
 
   right->Splay();