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 | 7f549dfd7b1d3b2b09e5878eeb754efae253d557 (patch) | |
tree | 2750c7c8ae39d4604a5ddedb647b8ee5538764f3 /lib/Lex/PPDirectives.cpp | |
parent | 940bd834cd5419f8a8b6ae3c871fb1f8275a06fc (diff) |
use accessor instead of poking ivar directly
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66954 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPDirectives.cpp')
-rw-r--r-- | lib/Lex/PPDirectives.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/PPDirectives.cpp b/lib/Lex/PPDirectives.cpp index b38ff10c20..5a4d2ee15e 100644 --- a/lib/Lex/PPDirectives.cpp +++ b/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); |