diff options
Diffstat (limited to 'lib/Lex/TokenLexer.cpp')
-rw-r--r-- | lib/Lex/TokenLexer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Lex/TokenLexer.cpp b/lib/Lex/TokenLexer.cpp index 7ea28bf20c..9618711d6c 100644 --- a/lib/Lex/TokenLexer.cpp +++ b/lib/Lex/TokenLexer.cpp @@ -652,7 +652,7 @@ TokenLexer::getExpansionLocForMacroDefLoc(SourceLocation loc) const { unsigned relativeOffset = 0; SM.isInSLocAddrSpace(loc, MacroDefStart, MacroDefLength, &relativeOffset); - return MacroExpansionStart.getFileLocWithOffset(relativeOffset); + return MacroExpansionStart.getLocWithOffset(relativeOffset); } /// \brief Finds the tokens that are consecutive (from the same FileID) @@ -713,7 +713,7 @@ static void updateConsecutiveMacroArgTokens(SourceManager &SM, Token &Tok = *begin_tokens; int RelOffs = 0; SM.isInSameSLocAddrSpace(FirstLoc, Tok.getLocation(), &RelOffs); - Tok.setLocation(Expansion.getFileLocWithOffset(RelOffs)); + Tok.setLocation(Expansion.getLocWithOffset(RelOffs)); } } |