From: Chris Lattner Date: Mon, 9 Jan 2006 07:58:01 +0000 (+0000) Subject: Bugfix for etforest updating. Contributed by Daniel Berlin. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6b135b74bd611086a2b7ec1da4ab82c18483f993;p=oota-llvm.git Bugfix for etforest updating. Contributed by Daniel Berlin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25152 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index d328c3015cf..6021b33941b 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -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();