diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index 3babbe05ca8f9d..d15ef232a5fb8c 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -5868,7 +5868,7 @@ bool Sema::DiagnoseSwiftName(Decl *D, StringRef Name, SourceLocation Loc, if (!F->hasWrittenPrototype()) { Diag(Loc, diag::warn_attribute_wrong_decl_type) << AL - << /* non-K&R-style functions */12; + << ExpectedFunctionWithProtoType; return false; } }