Skip to content

Commit df703ea

Browse files
committed
Switched to using DiagCompat for compatibility messages
1 parent 5299a58 commit df703ea

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clang/lib/Sema/SemaInit.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9919,10 +9919,7 @@ QualType Sema::DeduceTemplateSpecializationFromInitializer(
99199919
if (!Template) {
99209920
if (auto *AliasTemplate = dyn_cast_or_null<TypeAliasTemplateDecl>(
99219921
TemplateName.getAsTemplateDecl())) {
9922-
Diag(Kind.getLocation(),
9923-
getLangOpts().CPlusPlus20
9924-
? diag::compat_cxx20_ctad_for_alias_templates
9925-
: diag::compat_pre_cxx20_ctad_for_alias_templates);
9922+
DiagCompat(Kind.getLocation(), diag_compat::ctad_for_alias_templates);
99269923
LookupTemplateDecl = AliasTemplate;
99279924
auto UnderlyingType = AliasTemplate->getTemplatedDecl()
99289925
->getUnderlyingType()

0 commit comments

Comments
 (0)