This commit is contained in:
Folkert 2023-06-18 22:05:27 +02:00
parent 51f3752c94
commit 052ce8f2aa
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
8 changed files with 114 additions and 18 deletions

View file

@ -1945,7 +1945,7 @@ impl<'a, 'r> WasmBackend<'a, 'r> {
let from_offset = tag_offset + field_offset;
self.code_builder.i32_const(from_offset as i32)
self.code_builder.i32_const(from_offset as i32);
}
/*******************************************************************

View file

@ -11,7 +11,7 @@ use roc_mono::low_level::HigherOrder;
use crate::backend::{ProcLookupData, ProcSource, WasmBackend};
use crate::layout::{CallConv, StackMemoryFormat, WasmLayout};
use crate::storage::{AddressValue, StackMemoryLocation, StoredValue, StoredVarKind};
use crate::storage::{AddressValue, StackMemoryLocation, StoredValue};
use crate::PTR_TYPE;
use roc_wasm_module::{Align, LocalId, ValueType};
@ -1964,7 +1964,6 @@ impl<'a> LowLevelCall<'a> {
// PtrStore : Ptr a, a -> {}
let ptr_sym = self.arguments[0];
let value_sym = self.arguments[1];
let layout = self.ret_layout;
// create a local variable for the heap pointer
let ptr_local_id = match backend.storage.ensure_value_has_local(