summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Lexer.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2016-02-18 22:34:54 +0000
committerRichard Trieu <rtrieu@google.com>2016-02-18 22:34:54 +0000
commitcc3949d99af2b2ea2f31c1694eeef7cea0f484f0 (patch)
tree7b6a787cb2352bf0f9ced314eaff8aad71618459 /clang/lib/Lex/Lexer.cpp
parent7a08381403b54cd8998f3c922f18b65867e3c07c (diff)
downloadbcm5719-llvm-cc3949d99af2b2ea2f31c1694eeef7cea0f484f0.tar.gz
bcm5719-llvm-cc3949d99af2b2ea2f31c1694eeef7cea0f484f0.zip
Remove use of builtin comma operator.
Cleanup for upcoming Clang warning -Wcomma. No functionality change intended. llvm-svn: 261271
Diffstat (limited to 'clang/lib/Lex/Lexer.cpp')
-rw-r--r--clang/lib/Lex/Lexer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp
index 43bd12f2435..d0e38a42473 100644
--- a/clang/lib/Lex/Lexer.cpp
+++ b/clang/lib/Lex/Lexer.cpp
@@ -719,7 +719,9 @@ SourceLocation Lexer::AdvanceToTokenCharacter(SourceLocation TokStart,
while (Lexer::isObviouslySimpleCharacter(*TokPtr)) {
if (CharNo == 0)
return TokStart.getLocWithOffset(PhysOffset);
- ++TokPtr, --CharNo, ++PhysOffset;
+ ++TokPtr;
+ --CharNo;
+ ++PhysOffset;
}
// If we have a character that may be a trigraph or escaped newline, use a
OpenPOWER on IntegriCloud