From c0f04d6052f737ff8df3a241849839cc37f12ecc Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 23 Mar 2015 19:39:19 +0000 Subject: [PATCH] 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 --- lib/Lex/LiteralSupport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.40.0