summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lib/Support/IntEqClasses.cpp
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2017-01-14 19:55:43 +0000
committerpatrick <patrick@openbsd.org>2017-01-14 19:55:43 +0000
commitbd3306aecb3a15e8967143b8cdbbccf2b1b19b74 (patch)
tree309a8132b44564b9e634c0da6815187ce8eab27c /gnu/llvm/lib/Support/IntEqClasses.cpp
parentkillp -a should not kill the window if only one pane. (diff)
downloadwireguard-openbsd-bd3306aecb3a15e8967143b8cdbbccf2b1b19b74.tar.xz
wireguard-openbsd-bd3306aecb3a15e8967143b8cdbbccf2b1b19b74.zip
Import LLVM 3.9.1 including clang and lld.
Diffstat (limited to 'gnu/llvm/lib/Support/IntEqClasses.cpp')
-rw-r--r--gnu/llvm/lib/Support/IntEqClasses.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/gnu/llvm/lib/Support/IntEqClasses.cpp b/gnu/llvm/lib/Support/IntEqClasses.cpp
index ff213570807..cb6e3a19e8d 100644
--- a/gnu/llvm/lib/Support/IntEqClasses.cpp
+++ b/gnu/llvm/lib/Support/IntEqClasses.cpp
@@ -37,10 +37,15 @@ unsigned IntEqClasses::join(unsigned a, unsigned b) {
// incrementally. The larger leader will eventually be updated, joining the
// classes.
while (eca != ecb)
- if (eca < ecb)
- EC[b] = eca, b = ecb, ecb = EC[b];
- else
- EC[a] = ecb, a = eca, eca = EC[a];
+ if (eca < ecb) {
+ EC[b] = eca;
+ b = ecb;
+ ecb = EC[b];
+ } else {
+ EC[a] = ecb;
+ a = eca;
+ eca = EC[a];
+ }
return eca;
}