diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-01-29 19:38:24 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-01-29 19:38:24 +0000 |
commit | c0178e9cf47dd8300616b955dd820342cf339e4c (patch) | |
tree | d4353d25eb7598dd9f3141e06f921ec92ccb4cbc /lib/Lex/Preprocessor.cpp | |
parent | de4b1d86bf48bc2a84bddf6b188f6da53eaea845 (diff) |
Fix subtle bug in Preprocessor::AdvanceToTokenCharacter(): use '+=' instead of '='.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94830 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index 5689baaac6..df0e702ab4 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -424,7 +424,7 @@ SourceLocation Preprocessor::AdvanceToTokenCharacter(SourceLocation TokStart, // advanced by 3 should return the location of b, not of \\. One compounding // detail of this is that the escape may be made by a trigraph. if (!Lexer::isObviouslySimpleCharacter(*TokPtr)) - PhysOffset = Lexer::SkipEscapedNewLines(TokPtr)-TokPtr; + PhysOffset += Lexer::SkipEscapedNewLines(TokPtr)-TokPtr; return TokStart.getFileLocWithOffset(PhysOffset); } |