mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
fix dev-wasm ListGetUnsafe refcounting
This commit is contained in:
parent
5d613cd5f5
commit
0d083bc192
2 changed files with 20 additions and 7 deletions
|
@ -416,13 +416,6 @@ impl<'a> LowLevelCall<'a> {
|
|||
AddressValue::NotLoaded(elem_local),
|
||||
0,
|
||||
);
|
||||
|
||||
// Increment refcount
|
||||
if self.ret_layout_raw.is_refcounted(backend.layout_interner) {
|
||||
let inc_fn = backend.get_refcount_fn_index(self.ret_layout, HelperOp::Inc);
|
||||
backend.code_builder.get_local(elem_local);
|
||||
backend.code_builder.call(inc_fn);
|
||||
}
|
||||
}
|
||||
ListReplaceUnsafe => {
|
||||
// List.replace_unsafe : List elem, U64, elem -> { list: List elem, value: elem }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue