diff options
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r-- | src/wasm/wasm.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp index c7a187b43..6245a3575 100644 --- a/src/wasm/wasm.cpp +++ b/src/wasm/wasm.cpp @@ -47,6 +47,7 @@ const char* ReferenceTypesFeature = "reference-types"; const char* MultivalueFeature = "multivalue"; const char* GCFeature = "gc"; const char* Memory64Feature = "memory64"; +const char* TypedFunctionReferencesFeature = "typed-function-references"; } // namespace UserSections } // namespace BinaryConsts @@ -984,7 +985,12 @@ void RefIsNull::finalize() { type = Type::i32; } -void RefFunc::finalize() { type = Type::funcref; } +void RefFunc::finalize() { + // No-op. We assume that the full proper typed function type has been applied + // previously. +} + +void RefFunc::finalize(Type type_) { type = type_; } void RefEq::finalize() { if (left->type == Type::unreachable || right->type == Type::unreachable) { |