summaryrefslogtreecommitdiff
path: root/src/passes/OptimizeCasts.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/passes/OptimizeCasts.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/passes/OptimizeCasts.cpp')
-rw-r--r--src/passes/OptimizeCasts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/OptimizeCasts.cpp b/src/passes/OptimizeCasts.cpp
index 5edde4d2f..efa00948b 100644
--- a/src/passes/OptimizeCasts.cpp
+++ b/src/passes/OptimizeCasts.cpp
@@ -90,7 +90,7 @@
// )
//
// Note that right now, we only consider RefAs with op RefAsNonNull as a cast.
-// RefAs with ExternInternalize and ExternExternalize are not considered casts
+// RefAs with AnyConvertExtern and ExternConvertAny are not considered casts
// when obtaining fallthroughs, and so are ignored.
//
// TODO: Look past individual basic blocks? This may be worth considering