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)
commit4f75c097b05b8eaf704ed679b18d5a54f2e63476
tree8f3c20d2a8471682027531b7ff4abacc61a8df9f
parent60f0aa8a42e1414af752cba5531254d449d238c0
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

llvm-svn: 233004
llvm/lib/Support/APFloat.cpp