diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-16 18:36:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-16 18:36:34 +0000 |
commit | e6de6252c2ff76a227e7b2ad387d4381a157dc36 (patch) | |
tree | a7a1eaaec2c45802323cb9a311b7b104fb5ad32c /clang/lib/Basic/Diagnostic.cpp | |
parent | 354e8b818994c52ff8c8abef00ba542642524871 (diff) | |
download | bcm5719-llvm-e6de6252c2ff76a227e7b2ad387d4381a157dc36.tar.gz bcm5719-llvm-e6de6252c2ff76a227e7b2ad387d4381a157dc36.zip |
Fix PR3077: tokens that come from macro expansions whose macro was
defined in a system header should be treated as system header tokens
even if they are instantiated in a different place.
llvm-svn: 59418
Diffstat (limited to 'clang/lib/Basic/Diagnostic.cpp')
-rw-r--r-- | clang/lib/Basic/Diagnostic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/Diagnostic.cpp b/clang/lib/Basic/Diagnostic.cpp index c3ff10d4279..533a6a76ecd 100644 --- a/clang/lib/Basic/Diagnostic.cpp +++ b/clang/lib/Basic/Diagnostic.cpp @@ -234,7 +234,7 @@ void Diagnostic::Report(DiagnosticClient* C, if (SuppressSystemWarnings && DiagID < diag::NUM_BUILTIN_DIAGNOSTICS && getBuiltinDiagClass(DiagID) != ERROR && - Loc.isValid() && Loc.isFileID() && Loc.isInSystemHeader()) + Loc.isValid() && Loc.getPhysicalLoc().isInSystemHeader()) return; if (DiagLevel >= Diagnostic::Error) { |