summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r--src/wasm-interpreter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h
index a29af2216..cf5908adf 100644
--- a/src/wasm-interpreter.h
+++ b/src/wasm-interpreter.h
@@ -1197,7 +1197,7 @@ public:
// the default impls for load and store switch on the sizes. you can either
// customize load/store, or the sub-functions which they call
virtual Literal load(Load* load, Address addr) {
- switch (load->type) {
+ switch (load->type.getSingle()) {
case Type::i32: {
switch (load->bytes) {
case 1:
@@ -1248,7 +1248,7 @@ public:
WASM_UNREACHABLE("invalid type");
}
virtual void store(Store* store, Address addr, Literal value) {
- switch (store->valueType) {
+ switch (store->valueType.getSingle()) {
case Type::i32: {
switch (store->bytes) {
case 1: