diff options
Diffstat (limited to 'clang/Driver/RewriteMacros.cpp')
-rw-r--r-- | clang/Driver/RewriteMacros.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Driver/RewriteMacros.cpp b/clang/Driver/RewriteMacros.cpp index fb423c64137..ecf4b416d8b 100644 --- a/clang/Driver/RewriteMacros.cpp +++ b/clang/Driver/RewriteMacros.cpp @@ -65,7 +65,7 @@ static void LexRawTokensFromMainFile(Preprocessor &PP, // Create a lexer to lex all the tokens of the main file in raw mode. Even // though it is in raw mode, it will not return comments. - Lexer RawLex(SourceLocation::getFileLoc(SM.getMainFileID(), 0), + Lexer RawLex(SM.getLocForStartOfFile(SM.getMainFileID()), PP.getLangOptions(), File.first, File.second); // Switch on comment lexing because we really do want them. |