diff options
Diffstat (limited to 'src/wasm/wasm-validator.cpp')
-rw-r--r-- | src/wasm/wasm-validator.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp index 281f3ec45..a491fb951 100644 --- a/src/wasm/wasm-validator.cpp +++ b/src/wasm/wasm-validator.cpp @@ -3389,8 +3389,7 @@ void FunctionValidator::visitFunction(Function* curr) { // Check for things like having a rec group with GC enabled. The type we're // checking is a reference type even if this an MVP function type, so ignore // the reference types feature here. - features |= - (Type(curr->type, Nullable).getFeatures() & ~FeatureSet::ReferenceTypes); + features |= (curr->type.getFeatures() & ~FeatureSet::ReferenceTypes); for (const auto& param : curr->getParams()) { features |= param.getFeatures(); shouldBeTrue(param.isConcrete(), curr, "params must be concretely typed"); |