[cfe-commits] r59418 - /cfe/trunk/lib/Basic/Diagnostic.cpp
Chris Lattner
sabre at nondot.org
Sun Nov 16 10:36:34 PST 2008
Author: lattner
Date: Sun Nov 16 12:36:34 2008
New Revision: 59418
URL: http://llvm.org/viewvc/llvm-project?rev=59418&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Basic/Diagnostic.cpp
Modified: cfe/trunk/lib/Basic/Diagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Diagnostic.cpp?rev=59418&r1=59417&r2=59418&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Diagnostic.cpp (original)
+++ cfe/trunk/lib/Basic/Diagnostic.cpp Sun Nov 16 12:36:34 2008
@@ -234,7 +234,7 @@
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) {
More information about the cfe-commits
mailing list