X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=lib%2FSupport%2FIntervalMap.cpp;h=4dfcc404ca42833f6c2b397c7626aebc368db9a8;hb=b21d9aebba7e45ddcbce61dd501000049cefb335;hp=6f39b183a1c8d8eb0b1d463e8c16586ac40ef6a9;hpb=706da9d8ca207c93d38855ffd96cf9722996d706;p=oota-llvm.git diff --git a/lib/Support/IntervalMap.cpp b/lib/Support/IntervalMap.cpp index 6f39b183a1c..4dfcc404ca4 100644 --- a/lib/Support/IntervalMap.cpp +++ b/lib/Support/IntervalMap.cpp @@ -79,11 +79,11 @@ NodeRef Path::getRightSibling(unsigned Level) const { // Go up the tree until we can go right. unsigned l = Level - 1; - while (l && atLastBranch(l)) + while (l && atLastEntry(l)) --l; // We can't go right. - if (atLastBranch(l)) + if (atLastEntry(l)) return NodeRef(); // NR is the subtree containing our right sibling. @@ -100,7 +100,7 @@ void Path::moveRight(unsigned Level) { // Go up the tree until we can go right. unsigned l = Level - 1; - while (l && atLastBranch(l)) + while (l && atLastEntry(l)) --l; // NR is the subtree containing our right sibling. If we hit end(), we have