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:
Eli Friedman 2010-08-01 22:13:15 +00:00
parent 81c9cea24b
commit 60307d2072
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}