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
This commit is contained in:
Chris Lattner 2006-01-09 07:58:01 +00:00
parent d41c981c39
commit 6b135b74bd

View 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();