[llvm-commits] [llvm] r163992 - /llvm/trunk/include/llvm/ADT/ImmutableSet.h
Craig Topper
craig.topper at gmail.com
Sat Sep 15 20:00:03 PDT 2012
Author: ctopper
Date: Sat Sep 15 22:00:03 2012
New Revision: 163992
URL: http://llvm.org/viewvc/llvm-project?rev=163992&view=rev
Log:
Tidy up formatting of some elses on a separate line from preceding bracing. No functional change.
Modified:
llvm/trunk/include/llvm/ADT/ImmutableSet.h
Modified: llvm/trunk/include/llvm/ADT/ImmutableSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ImmutableSet.h?rev=163992&r1=163991&r2=163992&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ImmutableSet.h (original)
+++ llvm/trunk/include/llvm/ADT/ImmutableSet.h Sat Sep 15 22:00:03 2012
@@ -468,8 +468,7 @@
freeNodes.pop_back();
assert(T != L);
assert(T != R);
- }
- else {
+ } else {
T = (TreeTy*) A.Allocate<TreeTy>();
}
new (T) TreeTy(this, L, R, V, incrementHeight(L,R));
@@ -512,7 +511,8 @@
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");
TreeTy *RL = getLeft(R);
@@ -528,8 +528,8 @@
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
More information about the llvm-commits
mailing list