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/PPDirectives.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/PPDirectives.cpp')
-rw-r--r-- | clang/lib/Lex/PPDirectives.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index b38ff10c205..5a4d2ee15e3 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -1314,7 +1314,7 @@ void Preprocessor::HandleDefineDirective(Token &DefineTok) { // It is very common for system headers to have tons of macro redefinitions // and for warnings to be disabled in system headers. If this is the case, // then don't bother calling MacroInfo::isIdenticalTo. - if (!Diags.getSuppressSystemWarnings() || + if (!getDiagnostics().getSuppressSystemWarnings() || !SourceMgr.isInSystemHeader(DefineTok.getLocation())) { if (!OtherMI->isUsed()) Diag(OtherMI->getDefinitionLoc(), diag::pp_macro_not_used); |