Skip to content

Commit 93ff1a3

Browse files
committed
Address nits
1 parent 6e855e0 commit 93ff1a3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clang/include/clang/Basic/AttrDocs.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7641,7 +7641,7 @@ def ArmAgnosticDocs : Documentation {
76417641
The ``__arm_agnostic`` keyword applies to prototyped function types and
76427642
affects the function's calling convention for a given state S. This
76437643
attribute allows the user to describe a function that preserves S, without
7644-
requiring the function to share S with its callers and without the making
7644+
requiring the function to share S with its callers and without making
76457645
the assumption that S exists.
76467646

76477647
If a function has the ``__arm_agnostic(S)`` attribute and calls a function

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3835,7 +3835,7 @@ def err_sme_unimplemented_za_save_restore : Error<
38353835
"call to a function that shares state other than 'za' from a "
38363836
"function that has live 'za' state requires a spill/fill of ZA, which is not yet "
38373837
"implemented">;
3838-
def err_sme_unimplemented_agnostic_new : Error<
3838+
def err_sme_unsupported_agnostic_new : Error<
38393839
"__arm_agnostic(\"sme_za_state\") is not supported together with "
38403840
"__arm_new(\"za\") or __arm_new(\"zt0\")">;
38413841
def note_sme_use_preserves_za : Note<

clang/lib/Sema/SemaARM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ void SemaARM::CheckSMEFunctionDefAttributes(const FunctionDecl *FD) {
13411341
if (const auto *FPT = FD->getType()->getAs<FunctionProtoType>()) {
13421342
FunctionProtoType::ExtProtoInfo EPI = FPT->getExtProtoInfo();
13431343
if (EPI.AArch64SMEAttributes & FunctionType::SME_AgnosticZAStateMask)
1344-
Diag(FD->getLocation(), diag::err_sme_unimplemented_agnostic_new);
1344+
Diag(FD->getLocation(), diag::err_sme_unsupported_agnostic_new);
13451345
}
13461346
}
13471347

0 commit comments

Comments
 (0)