summaryrefslogtreecommitdiff
path: root/src/wasm
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm')
-rw-r--r--src/wasm/literal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp
index b7bb83155..80af9535e 100644
--- a/src/wasm/literal.cpp
+++ b/src/wasm/literal.cpp
@@ -238,7 +238,7 @@ Literal Literal::makeZero(Type type) {
if (type == Type::i31ref) {
return makeI31(0);
} else {
- return makeNull(type);
+ return makeNull(type.getHeapType());
}
} else if (type.isRtt()) {
return Literal(type);