mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +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),
|
layout.alignment_bytes(env.target_info),
|
||||||
);
|
);
|
||||||
|
|
||||||
env.builder.build_store(allocation, value);
|
store_roc_value(env, *layout, allocation, value);
|
||||||
|
|
||||||
allocation.into()
|
allocation.into()
|
||||||
}
|
}
|
||||||
|
@ -1148,8 +1148,7 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
|
||||||
|
|
||||||
debug_assert!(value.is_pointer_value());
|
debug_assert!(value.is_pointer_value());
|
||||||
|
|
||||||
env.builder
|
load_roc_value(env, *layout, value.into_pointer_value(), "load_boxed_value")
|
||||||
.build_load(value.into_pointer_value(), "load_boxed_value")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Reset { symbol, .. } => {
|
Reset { symbol, .. } => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue