[PATCH] Refactor: Simplify boolean expressions in llvm Support
David Blaikie
dblaikie at gmail.com
Mon Mar 23 12:48:18 PDT 2015
REPOSITORY
rL LLVM
http://reviews.llvm.org/D8526
Files:
llvm/trunk/lib/Support/APFloat.cpp
Index: llvm/trunk/lib/Support/APFloat.cpp
===================================================================
--- llvm/trunk/lib/Support/APFloat.cpp
+++ llvm/trunk/lib/Support/APFloat.cpp
@@ -1430,7 +1430,7 @@
/* Determine if the operation on the absolute values is effectively
an addition or subtraction. */
- subtract ^= (sign ^ rhs.sign) ? true : false;
+ subtract ^= sign ^ rhs.sign;
/* Are we bigger exponent-wise than the RHS? */
bits = exponent - rhs.exponent;
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8526.22508.patch
Type: text/x-patch
Size: 491 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150323/6894590b/attachment.bin>
More information about the llvm-commits
mailing list