Refactor: Simplify boolean expressions in llvm Support
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 23 Mar 2015 19:45:40 +0000 (19:45 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 23 Mar 2015 19:45:40 +0000 (19:45 +0000)
commitb370250f03ab4acdc271d3114076c0e97023eee6
treece48c30a3ff4da1da9e5499dc34c1275f4ad9b09
parent3fb62691213eeecc7302d79b0a59c140b22c2f38
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
lib/Support/APFloat.cpp