diff options
author | Alon Zakai <azakai@google.com> | 2021-02-23 00:59:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-22 16:59:27 -0800 |
commit | b3b6a81c6a74db656d8f2c07b91c4a0ba4b28734 (patch) | |
tree | 07f7199f9f9c3761ca74a89af36630f5f3f7f7f6 /src/asmjs/asm_v_wasm.cpp | |
parent | 84eb631330cbeb2afc80df2c2c856a2392dc66bb (diff) | |
download | binaryen-b3b6a81c6a74db656d8f2c07b91c4a0ba4b28734.tar.gz binaryen-b3b6a81c6a74db656d8f2c07b91c4a0ba4b28734.tar.bz2 binaryen-b3b6a81c6a74db656d8f2c07b91c4a0ba4b28734.zip |
[Wasm Exceptions] Fix cfg-traversal on linking the basic block after a call (#3594)
This was an unfortunate case of the order of execution of call
arguments. link(self->currBasicBlock, self->startBasicBlock()) would
run the call first, which sets currBasicBlock, so we'd end up with
the same value for both parameters.
Without this fix, the testcase would drop the result of the call,
as it thought it had no uses.
Also improve debug logging here a tiny bit.
Found by emscripten-core/emscripten#13485
Diffstat (limited to 'src/asmjs/asm_v_wasm.cpp')
0 files changed, 0 insertions, 0 deletions