diff options
-rw-r--r-- | src/wasm-binary.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index 33490b5d8..be0d11e0a 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1574,7 +1574,11 @@ public: } bool maybeVisitImpl(Host *curr, uint8_t code) { switch (code) { - case BinaryConsts::MemorySize: curr->op = MemorySize; break; + case BinaryConsts::MemorySize: { + curr->op = MemorySize; + curr->type = i32; + break; + } case BinaryConsts::GrowMemory: { curr->op = GrowMemory; curr->operands.resize(1); |