use general roc store instead of specific llvm store

This commit is contained in:
Brendan Hansknecht 2022-07-18 21:53:01 -07:00
parent 837ce38066
commit b190b09b78
No known key found for this signature in database
GPG key ID: A2E3B0B6E483038E

View file

@ -3955,7 +3955,7 @@ fn expose_function_to_host_help_c_abi_v2<'a, 'ctx, 'env>(
CCReturn::ByPointer => {
let out_ptr = c_function.get_nth_param(0).unwrap().into_pointer_value();
env.builder.build_store(out_ptr, value);
store_roc_value(env, return_layout, out_ptr, value);
env.builder.build_return(None);
}
CCReturn::Void => {