summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-binary.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-09-18 18:40:00 -0700
committerGitHub <noreply@github.com>2023-09-19 01:40:00 +0000
commit8c5bb9b8a0b150ebab0d0dec545206b055de9564 (patch)
tree9851b38ef65a1634f451697638728d6e36bd714a /src/wasm/wasm-binary.cpp
parent452e50747ed397fe17c69dd428387b949feaa05d (diff)
downloadbinaryen-8c5bb9b8a0b150ebab0d0dec545206b055de9564.tar.gz
binaryen-8c5bb9b8a0b150ebab0d0dec545206b055de9564.tar.bz2
binaryen-8c5bb9b8a0b150ebab0d0dec545206b055de9564.zip
Fix visitBlock and add visitBlockStart in IRBuilder (#5959)
Visiting a block should push it onto the stack just like visiting any other expression, but we previously had a `visitBlock` that introduced a new scope instead. Fix `visitBlock` to behave as expected and introduce a new `visitBlockStart` method to introduce a new scope. Unfortunately this cannot be fully tested yet because the wat parser uses the `makeXYZ` API intead of the `visit` API, but at least I updated `makeBlock` to call `visitBlockStart`, so that is tested.
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
0 files changed, 0 insertions, 0 deletions