[llvm] AArch64Disassembler.cpp: Mark `DecodeUImm` as `[[maybe_unused]]` [-Wunused-template] (PR #215558)

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 06:32:56 PDT 2026


https://github.com/chapuni created https://github.com/llvm/llvm-project/pull/215558

This has been introduced in #181386.

>From b986a88333c4a420d2cfbf97ae5ba8074b843221 Mon Sep 17 00:00:00 2001
From: NAKAMURA Takumi <geek4civic at gmail.com>
Date: Tue, 11 Aug 2026 21:32:12 +0900
Subject: [PATCH] AArch64Disassembler.cpp: Mark `DecodeUImm` as
 `[[maybe_unused]]` [-Wunused-template]

This has been introduced in #181386.
---
 llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp b/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp
index 3170ad8c99774..8c254c9c0c0a1 100644
--- a/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp
+++ b/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp
@@ -39,6 +39,7 @@ template <int Bits>
 static DecodeStatus DecodeSImm(MCInst &Inst, uint64_t Imm, uint64_t Address,
                                const MCDisassembler *Decoder);
 template <int Bits>
+[[maybe_unused]]
 static DecodeStatus DecodeUImm(MCInst &Inst, uint64_t Imm, uint64_t Address,
                                const MCDisassembler *Decoder);
 



More information about the llvm-commits mailing list