[PATCH] Refactor: Simplify boolean expresssions in lib/Lex
David Blaikie
dblaikie at gmail.com
Mon Mar 23 12:42:08 PDT 2015
REPOSITORY
rL LLVM
http://reviews.llvm.org/D8531
Files:
cfe/trunk/lib/Lex/LiteralSupport.cpp
Index: cfe/trunk/lib/Lex/LiteralSupport.cpp
===================================================================
--- cfe/trunk/lib/Lex/LiteralSupport.cpp
+++ cfe/trunk/lib/Lex/LiteralSupport.cpp
@@ -144,7 +144,7 @@
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;
}
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8531.22501.patch
Type: text/x-patch
Size: 509 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150323/f32575cb/attachment.bin>
More information about the cfe-commits
mailing list