mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Fix double-offset bug
This commit is contained in:
parent
f8a1f9e8cf
commit
9bf1b9aae3
1 changed files with 0 additions and 4 deletions
|
@ -975,10 +975,6 @@ impl<'a> WasmBackend<'a> {
|
|||
let refcount_offset = extra_bytes - PTR_SIZE;
|
||||
let encoded_refcount = (initial_refcount as i32) - 1 + i32::MIN;
|
||||
self.code_builder.get_local(local_id);
|
||||
if refcount_offset != 0 {
|
||||
self.code_builder.i32_const(refcount_offset as i32);
|
||||
self.code_builder.i32_add();
|
||||
}
|
||||
self.code_builder.i32_const(encoded_refcount);
|
||||
self.code_builder.i32_store(Align::Bytes4, refcount_offset);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue