summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-12-12 11:25:53 -0800
committerGitHub <noreply@github.com>2023-12-12 11:25:53 -0800
commita2a59e96f8f18e00e8aea9627d3b15d894d5a825 (patch)
tree6692c7556659ddb2a72178ed931445eb112c60f2 /scripts
parent71dad8795112b5c9ed1442450fa7e7bbe33622d1 (diff)
downloadbinaryen-a2a59e96f8f18e00e8aea9627d3b15d894d5a825.tar.gz
binaryen-a2a59e96f8f18e00e8aea9627d3b15d894d5a825.tar.bz2
binaryen-a2a59e96f8f18e00e8aea9627d3b15d894d5a825.zip
Update `tuple.make` text format to include arity (#6169)
Previously, the number of tuple elements was inferred from the number of s-expression children of the `tuple.make` expression, but that scheme would not work in the new wat parser, where s-expressions are optional and cannot be semantically meaningful. Update the text format to take the number of tuple elements (i.e. the tuple arity) as an immediate. This new format will be able to be implemented in the new parser as follow-on work.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/fuzz_opt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/fuzz_opt.py b/scripts/fuzz_opt.py
index c4bd5f6b4..58a8a7828 100755
--- a/scripts/fuzz_opt.py
+++ b/scripts/fuzz_opt.py
@@ -392,7 +392,7 @@ def pick_initial_contents():
# (struct.new $other)
# (struct.new $other)
# (tuple.extract 1
- # (tuple.make
+ # (tuple.make 2
# (i32.const 0)
# (i32.const 0)
# )