aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/Pragma.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Lex/Pragma.cpp')
-rw-r--r--lib/Lex/Pragma.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Lex/Pragma.cpp b/lib/Lex/Pragma.cpp
index 5e6de0ffc3..961c0f9e6f 100644
--- a/lib/Lex/Pragma.cpp
+++ b/lib/Lex/Pragma.cpp
@@ -248,7 +248,7 @@ void Preprocessor::HandlePragmaSystemHeader(Token &SysHeaderTok) {
}
// Get the current file lexer we're looking at. Ignore _Pragma 'files' etc.
- Lexer *TheLexer = getCurrentFileLexer();
+ PreprocessorLexer *TheLexer = getCurrentFileLexer();
// Mark the file as a system header.
const FileEntry *File = SourceMgr.getFileEntryForID(TheLexer->getFileID());
@@ -256,7 +256,7 @@ void Preprocessor::HandlePragmaSystemHeader(Token &SysHeaderTok) {
// Notify the client, if desired, that we are in a new source file.
if (Callbacks)
- Callbacks->FileChanged(TheLexer->getSourceLocation(TheLexer->BufferPtr),
+ Callbacks->FileChanged(SysHeaderTok.getLocation(),
PPCallbacks::SystemHeaderPragma, SrcMgr::C_System);
}