[Lldb-commits] [lldb] c87b2c9 - [RISC-V] Remove unnecessary VLA
Benjamin Kramer via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 29 09:47:16 PDT 2023
Author: Benjamin Kramer
Date: 2023-09-29T18:45:05+02:00
New Revision: c87b2c9c82e54b6cb21e668cd3e1097a44d5d48a
URL: https://github.com/llvm/llvm-project/commit/c87b2c9c82e54b6cb21e668cd3e1097a44d5d48a
DIFF: https://github.com/llvm/llvm-project/commit/c87b2c9c82e54b6cb21e668cd3e1097a44d5d48a.diff
LOG: [RISC-V] Remove unnecessary VLA
They're still non-standard in C++17.
Added:
Modified:
lldb/source/Plugins/ABI/RISCV/ABISysV_riscv.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/ABI/RISCV/ABISysV_riscv.cpp b/lldb/source/Plugins/ABI/RISCV/ABISysV_riscv.cpp
index bdcbeaca68fa33d..6395f5bb5bd9b01 100644
--- a/lldb/source/Plugins/ABI/RISCV/ABISysV_riscv.cpp
+++ b/lldb/source/Plugins/ABI/RISCV/ABISysV_riscv.cpp
@@ -231,7 +231,7 @@ bool ABISysV_riscv::PrepareTrivialCall(
args_size <= regs_for_args_count ? 0 : args_size - regs_for_args_count;
auto offset = on_stack * word_size;
- uint8_t reg_value[reg_size];
+ uint8_t reg_value[8];
size_t reg_index = LLDB_REGNUM_GENERIC_ARG1;
for (size_t i = 0; i < args_size; ++i) {
More information about the lldb-commits
mailing list