summaryrefslogtreecommitdiff
path: root/src/wasm/wasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r--src/wasm/wasm.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp
index a62435412..a94bda066 100644
--- a/src/wasm/wasm.cpp
+++ b/src/wasm/wasm.cpp
@@ -1036,6 +1036,10 @@ void RefAs::finalize() {
return;
}
switch (op) {
+ case RefAsNonNull:
+ // FIXME: when we support non-nullable types, switch to NonNullable
+ type = Type(value->type.getHeapType(), Nullable);
+ break;
case RefAsFunc:
type = Type::funcref;
break;