diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/passes/Print.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 4e7ae3730..5ab386ceb 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -2093,21 +2093,14 @@ struct PrintExpressionContents } void visitRefTest(RefTest* curr) { printMedium(o, "ref.test "); - if (curr->castType.isNullable()) { - printMedium(o, "null "); - } - printHeapType(o, curr->castType.getHeapType(), wasm); + printType(o, curr->castType, wasm); } void visitRefCast(RefCast* curr) { if (printUnreachableReplacement(curr)) { return; } - if (curr->type.isNullable()) { - printMedium(o, "ref.cast null "); - } else { - printMedium(o, "ref.cast "); - } - printHeapType(o, curr->type.getHeapType(), wasm); + printMedium(o, "ref.cast "); + printType(o, curr->type, wasm); } void visitBrOn(BrOn* curr) { @@ -2224,6 +2217,8 @@ struct PrintExpressionContents printMedium(o, "array.new_fixed"); o << ' '; TypeNamePrinter(o, wasm).print(curr->type.getHeapType()); + o << ' '; + o << curr->values.size(); } void visitArrayGet(ArrayGet* curr) { if (printUnreachableOrNullReplacement(curr->ref)) { |