[Lldb-commits] [lldb] [lldb][NFC] Fix unused variables in RegisterContextPOSIXCore_riscv32 (PR #215569)
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 11 06:46:24 PDT 2026
https://github.com/Teemperor created https://github.com/llvm/llvm-project/pull/215569
These are only used in asserts.
>From 38dd03da694c1e5b5a4decf9b5ee7e2999eba114 Mon Sep 17 00:00:00 2001
From: Raphael Isemann <rise at apple.com>
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..17142fbb8217d 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);
+ (void)k_num_gpr_registers;
constexpr uint32_t k_num_fpr_registers =
std::size(g_register_infos_riscv32_fpr);
+ (void)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();
More information about the lldb-commits
mailing list