load_roc_value by layoutrepr

This commit is contained in:
Ayaz Hafiz 2023-06-16 21:44:23 -05:00
parent 07f40baf62
commit 390e9f8648
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
9 changed files with 95 additions and 36 deletions

View file

@ -277,7 +277,7 @@ pub(crate) fn run_low_level<'a, 'ctx>(
load_roc_value(
env,
layout_interner,
layout,
layout_interner.get_repr(layout),
roc_return_alloca,
"str_to_num_result",
)
@ -2235,7 +2235,7 @@ fn build_int_unary_op<'a, 'ctx, 'env>(
load_roc_value(
env,
layout_interner,
return_layout,
layout_interner.get_repr(return_layout),
roc_return_alloca,
"num_to_int",
)