mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
use roc_ helpers for box loading and storing
This commit is contained in:
parent
59a2253b9a
commit
972c5d78d3
1 changed files with 2 additions and 3 deletions
|
@ -1138,7 +1138,7 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
|
|||
layout.alignment_bytes(env.target_info),
|
||||
);
|
||||
|
||||
env.builder.build_store(allocation, value);
|
||||
store_roc_value(env, *layout, allocation, value);
|
||||
|
||||
allocation.into()
|
||||
}
|
||||
|
@ -1148,8 +1148,7 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
|
|||
|
||||
debug_assert!(value.is_pointer_value());
|
||||
|
||||
env.builder
|
||||
.build_load(value.into_pointer_value(), "load_boxed_value")
|
||||
load_roc_value(env, *layout, value.into_pointer_value(), "load_boxed_value")
|
||||
}
|
||||
|
||||
Reset { symbol, .. } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue