From bd3306aecb3a15e8967143b8cdbbccf2b1b19b74 Mon Sep 17 00:00:00 2001 From: patrick Date: Sat, 14 Jan 2017 19:55:43 +0000 Subject: Import LLVM 3.9.1 including clang and lld. --- gnu/llvm/lib/Support/IntEqClasses.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'gnu/llvm/lib/Support/IntEqClasses.cpp') 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; } -- cgit v1.2.3-59-g8ed1b