defined in a system header should be treated as system header tokens
even if they are instantiated in a different place.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59418
91177308-0d34-0410-b5e6-
96231b3b80d8
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) {