diff options
| author | David Blaikie <dblaikie@gmail.com> | 2015-03-23 19:39:19 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2015-03-23 19:39:19 +0000 |
| commit | 252f743858beac92e874a2783618940514fc22d7 (patch) | |
| tree | 83c26e844b5449073b8adf5edb1cbae82f73b16f /clang/lib | |
| parent | 799003bf8c4e9637091c1e16b214d065d15958e6 (diff) | |
| download | bcm5719-llvm-252f743858beac92e874a2783618940514fc22d7.tar.gz bcm5719-llvm-252f743858beac92e874a2783618940514fc22d7.zip | |
Refactor: Simplify boolean expresssions in lib/Lex
Simplify boolean expressions using `true` and `false` with `clang-tidy`
Patch by Richard Thomson.
Differential Revision: http://reviews.llvm.org/D8531
llvm-svn: 232999
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Lex/LiteralSupport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/LiteralSupport.cpp b/clang/lib/Lex/LiteralSupport.cpp index 03331fb33eb..4e2ba1ab3f2 100644 --- a/clang/lib/Lex/LiteralSupport.cpp +++ b/clang/lib/Lex/LiteralSupport.cpp @@ -144,7 +144,7 @@ static unsigned ProcessCharEscape(const char *ThisTokBegin, int CharVal = llvm::hexDigitValue(ThisTokBuf[0]); if (CharVal == -1) break; // About to shift out a digit? - Overflow |= (ResultChar & 0xF0000000) ? true : false; + Overflow |= ResultChar & 0xF0000000; ResultChar <<= 4; ResultChar |= CharVal; } |

