Skip to content

Commit 1964105

Browse files
wip
1 parent 27a50e9 commit 1964105

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/ir/runtime-memory.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ class RuntimeMemory {
7474
// Do we care about the order here?
7575
// todo: address types? Address::address32_t is strange
7676
// todo: type of offset?
77-
virtual Literal
78-
load(uint32_t addr, uint64_t offset, MemoryOrder order) const {
77+
virtual Literal load(Address addr, Address offset, MemoryOrder order) const {
7978
Address address = getFinalAddress(offset, Literal(addr), 4, 1);
8079
return {};
8180
}

src/wasm-interpreter.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4081,7 +4081,6 @@ class ModuleRunnerBase : public ExpressionRunner<SubType> {
40814081
}
40824082

40834083
Flow visitLoad(Load* curr) {
4084-
WASM_UNREACHABLE("??");
40854084
VISIT(flow, curr->ptr)
40864085
auto* memory = allMemories[curr->memory];
40874086
return memory->load(static_cast<uint32_t>(flow.getSingleValue().geti32()),

0 commit comments

Comments
 (0)