forked from M-Labs/nac3
irrt: use __builtin_alloca
This commit is contained in:
parent
9d86b46e86
commit
718b076e50
@ -26,7 +26,6 @@ fn main() {
|
||||
"-S",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-Wno-implicit-function-declaration",
|
||||
"-o",
|
||||
"-",
|
||||
];
|
||||
|
@ -104,7 +104,7 @@ int32_t __nac3_list_slice_assign_var_size(
|
||||
|| MAX(src_start, src_end) < MIN(dest_start, dest_end)
|
||||
);
|
||||
if (need_alloca) {
|
||||
uint8_t *tmp = alloca(src_arr_len * size);
|
||||
uint8_t *tmp = __builtin_alloca(src_arr_len * size);
|
||||
__builtin_memcpy(tmp, src_arr, src_arr_len * size);
|
||||
src_arr = tmp;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user