mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Tidy up formatting of some elses on a separate line from preceding bracing. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163992 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c722ae7a2b
commit
910cf7f712
@ -468,8 +468,7 @@ protected:
|
|||||||
freeNodes.pop_back();
|
freeNodes.pop_back();
|
||||||
assert(T != L);
|
assert(T != L);
|
||||||
assert(T != R);
|
assert(T != R);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
T = (TreeTy*) A.Allocate<TreeTy>();
|
T = (TreeTy*) A.Allocate<TreeTy>();
|
||||||
}
|
}
|
||||||
new (T) TreeTy(this, L, R, V, incrementHeight(L,R));
|
new (T) TreeTy(this, L, R, V, incrementHeight(L,R));
|
||||||
@ -512,7 +511,8 @@ protected:
|
|||||||
|
|
||||||
return createNode(createNode(LL,L,LRL), LR, createNode(LRR,V,R));
|
return createNode(createNode(LL,L,LRL), LR, createNode(LRR,V,R));
|
||||||
}
|
}
|
||||||
else if (hr > hl + 2) {
|
|
||||||
|
if (hr > hl + 2) {
|
||||||
assert(!isEmpty(R) && "Right tree cannot be empty to have a height >= 2");
|
assert(!isEmpty(R) && "Right tree cannot be empty to have a height >= 2");
|
||||||
|
|
||||||
TreeTy *RL = getLeft(R);
|
TreeTy *RL = getLeft(R);
|
||||||
@ -528,8 +528,8 @@ protected:
|
|||||||
|
|
||||||
return createNode(createNode(L,V,RLL), RL, createNode(RLR,R,RR));
|
return createNode(createNode(L,V,RLL), RL, createNode(RLR,R,RR));
|
||||||
}
|
}
|
||||||
else
|
|
||||||
return createNode(L,V,R);
|
return createNode(L,V,R);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// add_internal - Creates a new tree that includes the specified
|
/// add_internal - Creates a new tree that includes the specified
|
||||||
|
Loading…
Reference in New Issue
Block a user