diff options
author | Alon Zakai <azakai@google.com> | 2021-03-18 15:10:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-18 15:10:11 -0700 |
commit | e5aaa07844687493e0155dacb6b79bf856a4dd81 (patch) | |
tree | 53ebe40500b65a3b5e698400a6a63d6fc3548c02 /src/wasm/wasm-io.cpp | |
parent | 647ef50fc4de9b5c49ffad1aec4271e79b171785 (diff) | |
download | binaryen-e5aaa07844687493e0155dacb6b79bf856a4dd81.tar.gz binaryen-e5aaa07844687493e0155dacb6b79bf856a4dd81.tar.bz2 binaryen-e5aaa07844687493e0155dacb6b79bf856a4dd81.zip |
[Wasm GC] Fix MergeBlocks on BrOn (#3702)
The pass was only aware of Break and Switch. Refactor it to use the
generic code, so that we can first handle Break, and then if anything
remains, note a problem was found. The same path can handle a Switch
which we handled before and also a BrOn etc.
git diff is not that useful after the refactoring sadly, but basically this just
moves the Break code and the Drop code, then adds the BranchUtils::operateOn
stuff after them (and we switch to a unified visitor so that we get called
for all expressions).
Diffstat (limited to 'src/wasm/wasm-io.cpp')
0 files changed, 0 insertions, 0 deletions