summaryrefslogtreecommitdiff
path: root/src/tools
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/tools
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/tools')
-rw-r--r--src/tools/wasm-ctor-eval.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/wasm-ctor-eval.cpp b/src/tools/wasm-ctor-eval.cpp
index c025764e7..df4e7a9bf 100644
--- a/src/tools/wasm-ctor-eval.cpp
+++ b/src/tools/wasm-ctor-eval.cpp
@@ -916,7 +916,7 @@ public:
if (original != value) {
// The original is externalized.
assert(original.type.getHeapType() == HeapType::ext);
- ret = builder.makeRefAs(ExternExternalize, ret);
+ ret = builder.makeRefAs(ExternConvertAny, ret);
}
return ret;
}