step 1: Deriv works and has no valgrind problems

This commit is contained in:
Folkert 2022-03-26 17:56:56 +01:00
parent baec1c2de3
commit 71c11784a0
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
6 changed files with 34 additions and 21 deletions

View file

@ -865,6 +865,9 @@ fn modify_refcount_str_help<'a, 'ctx, 'env>(
let parent = fn_val;
let arg_val = env
.builder
.build_load(arg_val.into_pointer_value(), "load_str_to_stack");
let str_wrapper = arg_val.into_struct_value();
let capacity = builder