github-actions[bot] wrote: <!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning: <details> <summary> You can test this locally with the following command: </summary> ``````````bash git-clang-format --diff c2675ba91aa22e7530465f027fbd853c05b95192 12600c89a2603615225bbdeafea94f98782bb9c8 -- clang/lib/Sema/SemaChecking.cpp clang/test/Sema/aarch64-sme-func-attrs.c `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index db9dc55c13..b071a02ca3 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -7545,8 +7545,7 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, if (CalleeArmZT0State != FunctionType::ARM_None && !CallerHasZT0State) Diag(Loc, diag::err_sme_zt0_call_no_zt0_state); - if (CallerHasZAState && - CalleeArmZAState == FunctionType::ARM_None && + if (CallerHasZAState && CalleeArmZAState == FunctionType::ARM_None && CalleeArmZT0State != FunctionType::ARM_None) { Diag(Loc, diag::err_sme_unimplemented_za_save_restore); Diag(Loc, diag::note_sme_use_preserves_za); `````````` </details> https://github.com/llvm/llvm-project/pull/80295 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits