diff options
author | Richard Trieu <rtrieu@google.com> | 2016-02-18 22:34:54 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2016-02-18 22:34:54 +0000 |
commit | cc3949d99af2b2ea2f31c1694eeef7cea0f484f0 (patch) | |
tree | 7b6a787cb2352bf0f9ced314eaff8aad71618459 /clang/lib/Lex/Lexer.cpp | |
parent | 7a08381403b54cd8998f3c922f18b65867e3c07c (diff) | |
download | bcm5719-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.cpp | 4 |
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 |