summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-04-20 08:23:10 -0700
committerGitHub <noreply@github.com>2021-04-20 08:23:10 -0700
commit1333d9a31ecacb39643e132400d9409aa3f989be (patch)
treee8aacbd51b2da29db1a4540d8de4f07e96339620 /src
parent02ae2661c9cb748d5479017a3db7bbd222e2daf5 (diff)
downloadbinaryen-1333d9a31ecacb39643e132400d9409aa3f989be.tar.gz
binaryen-1333d9a31ecacb39643e132400d9409aa3f989be.tar.bz2
binaryen-1333d9a31ecacb39643e132400d9409aa3f989be.zip
[Wasm GC] Fix the type of ref.as_func, which should be non-nullable (#3821)
Diffstat (limited to 'src')
-rw-r--r--src/wasm/wasm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp
index 34dcf75ee..410ba0573 100644
--- a/src/wasm/wasm.cpp
+++ b/src/wasm/wasm.cpp
@@ -1028,7 +1028,7 @@ void RefAs::finalize() {
type = Type(value->type.getHeapType(), NonNullable);
break;
case RefAsFunc:
- type = Type::funcref;
+ type = Type(HeapType::func, NonNullable);
break;
case RefAsData:
type = Type::dataref;