summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-binary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
-rw-r--r--src/wasm/wasm-binary.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp
index 5942a979f..2910bb383 100644
--- a/src/wasm/wasm-binary.cpp
+++ b/src/wasm/wasm-binary.cpp
@@ -750,8 +750,8 @@ void WasmBinaryWriter::writeFeaturesSection() {
return BinaryConsts::UserSections::ReferenceTypesFeature;
case FeatureSet::Multivalue:
return BinaryConsts::UserSections::MultivalueFeature;
- case FeatureSet::Anyref:
- return BinaryConsts::UserSections::AnyrefFeature;
+ case FeatureSet::GC:
+ return BinaryConsts::UserSections::GCFeature;
default:
WASM_UNREACHABLE("unexpected feature flag");
}
@@ -2307,8 +2307,8 @@ void WasmBinaryBuilder::readFeatures(size_t payloadLen) {
wasm.features.setReferenceTypes();
} else if (name == BinaryConsts::UserSections::MultivalueFeature) {
wasm.features.setMultivalue();
- } else if (name == BinaryConsts::UserSections::AnyrefFeature) {
- wasm.features.setAnyref();
+ } else if (name == BinaryConsts::UserSections::GCFeature) {
+ wasm.features.setGC();
}
}
}