Skip to content

Commit

Permalink
[RISC-V] Remove unnecessary VLA
Browse files Browse the repository at this point in the history
They're still non-standard in C++17.
  • Loading branch information
d0k committed Sep 29, 2023
1 parent 103bb69 commit c87b2c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/source/Plugins/ABI/RISCV/ABISysV_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c87b2c9

Please sign in to comment.