summaryrefslogtreecommitdiff
path: root/src/ir/properties.cpp
diff options
context:
space:
mode:
authorJérôme Vouillon <jerome.vouillon@gmail.com>2024-07-08 16:23:00 -0400
committerGitHub <noreply@github.com>2024-07-08 20:23:00 +0000
commit81f8f770a1b2adc027cbbbd981781d2ee6952e54 (patch)
tree11df952c2b2da03fb5ad5a3d75b64a060df1a130 /src/ir/properties.cpp
parent9792f2c1fd311c3ffd2036288c6e7614a0486481 (diff)
downloadbinaryen-81f8f770a1b2adc027cbbbd981781d2ee6952e54.tar.gz
binaryen-81f8f770a1b2adc027cbbbd981781d2ee6952e54.tar.bz2
binaryen-81f8f770a1b2adc027cbbbd981781d2ee6952e54.zip
Rename external conversion instructions (#6716)
Rename instructions `extern.internalize` into `any.convert_extern` and `extern.externalize` into `extern.convert_any` to follow more closely the spec. This was changed in https://github.com/WebAssembly/gc/issues/432. The legacy name is still accepted in text inputs and in the C and JS APIs.
Diffstat (limited to 'src/ir/properties.cpp')
-rw-r--r--src/ir/properties.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/properties.cpp b/src/ir/properties.cpp
index dd9a10a8e..d04771885 100644
--- a/src/ir/properties.cpp
+++ b/src/ir/properties.cpp
@@ -65,7 +65,7 @@ static bool isValidInConstantExpression(Module& wasm, Expression* expr) {
}
if (auto* refAs = expr->dynCast<RefAs>()) {
- if (refAs->op == ExternExternalize || refAs->op == ExternInternalize) {
+ if (refAs->op == ExternConvertAny || refAs->op == AnyConvertExtern) {
return true;
}
}