mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 01:38:03 +00:00
Refactor: Simplify boolean expressions in llvm Support
Simplify boolean expressions using `true` and `false` with `clang-tidy` Patch by Richard Thomson - I dropped the parens and != 0 test, for consistency with other patches/tests like this, but I'm open to the notion that we should add the explicit non-zero test in all these sort of cases (non-bool assigned to a bool). Differential Revision: http://reviews.llvm.org/D8526 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233004 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3fb6269121
commit
b370250f03
@ -1430,7 +1430,7 @@ APFloat::addOrSubtractSignificand(const APFloat &rhs, bool subtract)
|
||||
|
||||
/* 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user