Skip to content

Commit b769f41

Browse files
committed
Remove [[maybe_unused]]
Change-Id: I762a5672deffef003dea39832f8fa11c202a78cb
1 parent 840c080 commit b769f41

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AArch64/MachineSMEABIPass.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,8 +1032,6 @@ void MachineSMEABI::emitStateChange(EmitContext &Context,
10321032
if (From == ZAState::ENTRY && To == ZAState::OFF)
10331033
return;
10341034

1035-
[[maybe_unused]] SMEAttrs SMEFnAttrs = AFI->getSMEFnAttrs();
1036-
10371035
// TODO: Avoid setting up the save buffer if there's no transition to
10381036
// LOCAL_SAVED.
10391037
if (From == ZAState::ENTRY) {
@@ -1049,6 +1047,7 @@ void MachineSMEABI::emitStateChange(EmitContext &Context,
10491047
From = ZAState::ACTIVE;
10501048
}
10511049

1050+
SMEAttrs SMEFnAttrs = AFI->getSMEFnAttrs();
10521051
bool IsAgnosticZA = SMEFnAttrs.hasAgnosticZAInterface();
10531052
bool HasZT0State = SMEFnAttrs.hasZT0State();
10541053
bool HasZAState = IsAgnosticZA || SMEFnAttrs.hasZAState();

0 commit comments

Comments
 (0)