diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-13 21:17:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-13 21:17:23 +0000 |
commit | 80c21df8eaf5c6e5552a819c093e46650d6589fe (patch) | |
tree | dc6cdf99e7428c5d85c310fecaa705314b0f0546 /clang/lib/Lex/PPLexerChange.cpp | |
parent | 4bb96e9a509391af0d85c378ea5e7e3afddb4b98 (diff) | |
download | bcm5719-llvm-80c21df8eaf5c6e5552a819c093e46650d6589fe.tar.gz bcm5719-llvm-80c21df8eaf5c6e5552a819c093e46650d6589fe.zip |
use accessor instead of poking ivar directly
llvm-svn: 66954
Diffstat (limited to 'clang/lib/Lex/PPLexerChange.cpp')
-rw-r--r-- | clang/lib/Lex/PPLexerChange.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp index 13e6126899d..7c1a0899982 100644 --- a/clang/lib/Lex/PPLexerChange.cpp +++ b/clang/lib/Lex/PPLexerChange.cpp @@ -238,7 +238,8 @@ bool Preprocessor::HandleEndOfFile(Token &Result, bool isEndOfMacro) { // This is the end of the top-level file. If the diag::pp_macro_not_used // diagnostic is enabled, look for macros that have not been used. - if (Diags.getDiagnosticLevel(diag::pp_macro_not_used) != Diagnostic::Ignored){ + if (getDiagnostics().getDiagnosticLevel(diag::pp_macro_not_used) != + Diagnostic::Ignored) { for (macro_iterator I = macro_begin(), E = macro_end(); I != E; ++I) if (!I->second->isUsed()) Diag(I->second->getDefinitionLoc(), diag::pp_macro_not_used); |