Skip to content

Commit cf5234b

Browse files
committed
[AArch64] Silence a warning (NFC)
/llvm-project/llvm/lib/Target/AArch64/MachineSMEABIPass.cpp:952:12: error: unused variable 'SMEFnAttrs' [-Werror,-Wunused-variable] SMEAttrs SMEFnAttrs = AFI->getSMEFnAttrs(); ^ 1 error generated.
1 parent a086fb2 commit cf5234b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/MachineSMEABIPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ void MachineSMEABI::emitStateChange(EmitContext &Context,
949949
if (From == ZAState::ENTRY && To == ZAState::OFF)
950950
return;
951951

952-
SMEAttrs SMEFnAttrs = AFI->getSMEFnAttrs();
952+
[[maybe_unused]] SMEAttrs SMEFnAttrs = AFI->getSMEFnAttrs();
953953

954954
// TODO: Avoid setting up the save buffer if there's no transition to
955955
// LOCAL_SAVED.

0 commit comments

Comments
 (0)