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

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 06:33:46 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-aarch64

Author: NAKAMURA Takumi (chapuni)

<details>
<summary>Changes</summary>

This has been introduced in #<!-- -->181386.

---
Full diff: https://github.com/llvm/llvm-project/pull/215558.diff


1 Files Affected:

- (modified) llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp (+1) 


``````````diff
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);
 

``````````

</details>


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


More information about the llvm-commits mailing list