summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-03-16 00:35:39 +0000
committerDouglas Gregor <dgregor@apple.com>2010-03-16 00:35:39 +0000
commit874cc62876c4e41107ed6595dcba4d0b2eb1571a (patch)
tree6cab400fd1f4dc66d039048267842886f51bd970 /clang/lib/Lex
parentf57437abb148f8c30c9010668fdb0f9729f4aa6c (diff)
downloadbcm5719-llvm-874cc62876c4e41107ed6595dcba4d0b2eb1571a.tar.gz
bcm5719-llvm-874cc62876c4e41107ed6595dcba4d0b2eb1571a.zip
Use SourceManager's Diagnostic object for all file-reading errors,
simplifying the SourceManager interfaces somewhat. llvm-svn: 98598
Diffstat (limited to 'clang/lib/Lex')
-rw-r--r--clang/lib/Lex/PPLexerChange.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp
index 4fba7b7bee1..81e6bf80902 100644
--- a/clang/lib/Lex/PPLexerChange.cpp
+++ b/clang/lib/Lex/PPLexerChange.cpp
@@ -80,8 +80,7 @@ bool Preprocessor::EnterSourceFile(FileID FID, const DirectoryLookup *CurDir,
}
// Get the MemoryBuffer for this FID, if it fails, we fail.
- const llvm::MemoryBuffer *InputFile
- = getSourceManager().getBuffer(FID).getBuffer(getDiagnostics());
+ const llvm::MemoryBuffer *InputFile = getSourceManager().getBuffer(FID);
if (!InputFile)
return true;
OpenPOWER on IntegriCloud