Skip to content

Commit 85e68f2

Browse files
wip
1 parent cc38d63 commit 85e68f2

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
@@ -4106,7 +4106,6 @@ class ModuleRunnerBase : public ExpressionRunner<SubType> {
41064106
}
41074107

41084108
Flow visitLoad(Load* curr) {
4109-
WASM_UNREACHABLE("??");
41104109
VISIT(flow, curr->ptr)
41114110
auto* memory = allMemories[curr->memory];
41124111
return memory->load(static_cast<uint32_t>(flow.getSingleValue().geti32()),

0 commit comments

Comments
 (0)