summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-02-26 00:08:10 +0000
committerGitHub <noreply@github.com>2021-02-25 16:08:10 -0800
commit142d5f32ce792327de62b62f09f25528dcd86950 (patch)
treee0459bb2a2ec3a9599f1d1dca94c702800f45eba /src/passes/Print.cpp
parent2572bbcd975c3bb7f99112ced7fe437e7a88eec0 (diff)
downloadbinaryen-142d5f32ce792327de62b62f09f25528dcd86950.tar.gz
binaryen-142d5f32ce792327de62b62f09f25528dcd86950.tar.bz2
binaryen-142d5f32ce792327de62b62f09f25528dcd86950.zip
[Wasm GC] Fix the order of operands in array.new and struct.new (#3617)
Also add a missing source file for a GC test, let.wasm.
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index 7a160a8eb..445021bcf 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -2752,10 +2752,10 @@ struct PrintSExpression : public OverriddenVisitor<PrintSExpression> {
o << '(';
printExpressionContents(curr);
incIndent();
- printFullLine(curr->rtt);
for (auto& operand : curr->operands) {
printFullLine(operand);
}
+ printFullLine(curr->rtt);
decIndent();
}
void visitStructGet(StructGet* curr) {
@@ -2777,11 +2777,11 @@ struct PrintSExpression : public OverriddenVisitor<PrintSExpression> {
o << '(';
printExpressionContents(curr);
incIndent();
- printFullLine(curr->rtt);
- printFullLine(curr->size);
if (curr->init) {
printFullLine(curr->init);
}
+ printFullLine(curr->size);
+ printFullLine(curr->rtt);
decIndent();
}
void visitArrayGet(ArrayGet* curr) {