diff options
Diffstat (limited to 'clang/Driver/DiagChecker.cpp')
-rw-r--r-- | clang/Driver/DiagChecker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/Driver/DiagChecker.cpp b/clang/Driver/DiagChecker.cpp index 8fa827ab198..6503214c521 100644 --- a/clang/Driver/DiagChecker.cpp +++ b/clang/Driver/DiagChecker.cpp @@ -117,12 +117,12 @@ static void FindExpectedDiags(Preprocessor &PP, DiagList &ExpectedNotes) { // Create a raw lexer to pull all the comments out of the main file. We don't // want to look in #include'd headers for expected-error strings. - unsigned FileID = PP.getSourceManager().getMainFileID(); + FileID FID = PP.getSourceManager().getMainFileID(); std::pair<const char*,const char*> File = - PP.getSourceManager().getBufferData(FileID); + PP.getSourceManager().getBufferData(FID); // Create a lexer to lex all the tokens of the main file in raw mode. - Lexer RawLex(SourceLocation::getFileLoc(FileID, 0), + Lexer RawLex(PP.getSourceManager().getLocForStartOfFile(FID), PP.getLangOptions(), File.first, File.second); // Return comments as tokens, this is how we find expected diagnostics. |