diff options
author | Alon Zakai <azakai@google.com> | 2021-01-28 00:18:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-27 16:18:43 -0800 |
commit | 53c471a445ef26eac7befc3f3a5e0a53870df8cb (patch) | |
tree | 419fb53072864affda454f942528416c258136c8 /src/passes/Print.cpp | |
parent | a5aa66c52e0b92597a3b90cf34ccc3b7dee775d0 (diff) | |
download | binaryen-53c471a445ef26eac7befc3f3a5e0a53870df8cb.tar.gz binaryen-53c471a445ef26eac7befc3f3a5e0a53870df8cb.tar.bz2 binaryen-53c471a445ef26eac7befc3f3a5e0a53870df8cb.zip |
[GC] Update br_on_cast: the text format also no longer has a heap type (#3523)
As a result, we cannot handle a br_on_cast with an unreachable RTT. The
binary format solves the problem by ignoring unreachable code, and this makes
the text format do the same.
A nice benefit of this is that we can remove the castType extra field.
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 23590ebd5..371d83962 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -1786,8 +1786,6 @@ struct PrintExpressionContents void visitBrOnCast(BrOnCast* curr) { printMedium(o, "br_on_cast "); printName(curr->name, o); - o << " "; - printHeapTypeName(o, curr->getCastType().getHeapType()); } void visitRttCanon(RttCanon* curr) { printMedium(o, "rtt.canon "); |