https://github.com/Teemperor updated 
https://github.com/llvm/llvm-project/pull/215569

>From f145856ab60634c4e039c25099ced6188d48300e Mon Sep 17 00:00:00 2001
From: Raphael Isemann <[email protected]>
Date: Tue, 11 Aug 2026 14:45:52 +0100
Subject: [PATCH] [lldb][NFC] Fix unused variables in
 RegisterContextPOSIXCore_riscv32

These are only used in asserts.
---
 .../Process/elf-core/RegisterContextPOSIXCore_riscv32.cpp       | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_riscv32.cpp 
b/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_riscv32.cpp
index 87fe98e2efe30..ff66c4b183e0c 100644
--- a/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_riscv32.cpp
+++ b/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_riscv32.cpp
@@ -49,8 +49,10 @@ 
RegisterContextCorePOSIX_riscv32::RegisterContextCorePOSIX_riscv32(
   // Compute the maximum register counts for GPR, FPR, and CSR.
   constexpr uint32_t k_num_gpr_registers =
       std::size(g_register_infos_riscv32_gpr);
+  UNUSED_IF_ASSERT_DISABLED(k_num_gpr_registers);
   constexpr uint32_t k_num_fpr_registers =
       std::size(g_register_infos_riscv32_fpr);
+  UNUSED_IF_ASSERT_DISABLED(k_num_fpr_registers);
   constexpr uint32_t k_num_csr_registers =
       std::size(g_register_infos_riscv32_csr);
   const ArchSpec &target_arch = m_reg_infos_up->GetTargetArchitecture();

_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to