forked from OSchip/llvm-project
PR7777: Set EnabledByDefault to something useful, instead of setting it
randomly. This makes us consistently show "-pedantic" as the warning option for a warning where appropriate. llvm-svn: 109987
This commit is contained in:
parent
81c9cea24b
commit
60307d2072
|
@ -327,7 +327,7 @@ bool Diagnostic::isBuiltinExtensionDiag(unsigned DiagID,
|
|||
getBuiltinDiagClass(DiagID) != CLASS_EXTENSION)
|
||||
return false;
|
||||
|
||||
EnabledByDefault = StaticDiagInfo[DiagID].Mapping != diag::MAP_IGNORE;
|
||||
EnabledByDefault = GetDefaultDiagMapping(DiagID) != diag::MAP_IGNORE;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue