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 | c0f04d6052f737ff8df3a241849839cc37f12ecc (patch) | |
tree | 36ef1269739a2d6f59d2fe0492087646286a4217 /lib/Lex/LiteralSupport.cpp | |
parent | ffc858c6f8e7f838e61969d0633cd5a88a86a425 (diff) | |
download | clang-c0f04d6052f737ff8df3a241849839cc37f12ecc.tar.gz |
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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@232999 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/LiteralSupport.cpp')
-rw-r--r-- | lib/Lex/LiteralSupport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/LiteralSupport.cpp b/lib/Lex/LiteralSupport.cpp index 03331fb33e..4e2ba1ab3f 100644 --- a/lib/Lex/LiteralSupport.cpp +++ b/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; } |