summaryrefslogtreecommitdiff
path: root/src/wasm-stack.h
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-01-05 16:57:27 -0600
committerGitHub <noreply@github.com>2023-01-05 14:57:27 -0800
commitad38ddefb3728aaef0df69bd265412a38bcfd20d (patch)
treee7c0fff79ef26f425de3077f995150328524adf2 /src/wasm-stack.h
parentd623ba4b075aa1d70113fc41172a9ed248e0011d (diff)
downloadbinaryen-ad38ddefb3728aaef0df69bd265412a38bcfd20d.tar.gz
binaryen-ad38ddefb3728aaef0df69bd265412a38bcfd20d.tar.bz2
binaryen-ad38ddefb3728aaef0df69bd265412a38bcfd20d.zip
Support br_on_cast null (#5397)
As well as br_on_cast_fail null. Unlike the existing br_on_cast* instructions, these new instructions treat the cast as succeeding when the input is a null. Update the internal representation of the cast type in `BrOn` expressions to be a `Type` rather than a `HeapType` so it will include nullability information. Also update and improve `RemoveUnusedBrs` to handle the new instructions correctly and optimize in more cases.
Diffstat (limited to 'src/wasm-stack.h')
0 files changed, 0 insertions, 0 deletions