Skip to content

Commit 60307d2

Browse files
committed
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
1 parent 81c9cea commit 60307d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Basic/Diagnostic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ bool Diagnostic::isBuiltinExtensionDiag(unsigned DiagID,
327327
getBuiltinDiagClass(DiagID) != CLASS_EXTENSION)
328328
return false;
329329

330-
EnabledByDefault = StaticDiagInfo[DiagID].Mapping != diag::MAP_IGNORE;
330+
EnabledByDefault = GetDefaultDiagMapping(DiagID) != diag::MAP_IGNORE;
331331
return true;
332332
}
333333

0 commit comments

Comments
 (0)