Skip to content

Commit c87b2c9

Browse files
committed
[RISC-V] Remove unnecessary VLA
They're still non-standard in C++17.
1 parent 103bb69 commit c87b2c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/ABI/RISCV/ABISysV_riscv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ bool ABISysV_riscv::PrepareTrivialCall(
231231
args_size <= regs_for_args_count ? 0 : args_size - regs_for_args_count;
232232
auto offset = on_stack * word_size;
233233

234-
uint8_t reg_value[reg_size];
234+
uint8_t reg_value[8];
235235
size_t reg_index = LLDB_REGNUM_GENERIC_ARG1;
236236

237237
for (size_t i = 0; i < args_size; ++i) {

0 commit comments

Comments
 (0)