diff options
author | Alon Zakai <azakai@google.com> | 2020-11-18 16:54:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-18 16:54:19 -0800 |
commit | d0bc3811f00fe90762a9bee19bf354f780704ce5 (patch) | |
tree | d020ea52699dffd6bbf6933af040288aeefc2ca8 /src/passes/FuncCastEmulation.cpp | |
parent | f7547064e38bcc8518d6ebf1a2de0d7a76d6ad15 (diff) | |
download | binaryen-d0bc3811f00fe90762a9bee19bf354f780704ce5.tar.gz binaryen-d0bc3811f00fe90762a9bee19bf354f780704ce5.tar.bz2 binaryen-d0bc3811f00fe90762a9bee19bf354f780704ce5.zip |
[effects.h] Add a trap effect for unreachable (#3387)
We did not really model the effects of unreachable properly before. It
always traps, so it's not an implicit trap, but we didn't do anything but mark
it as "branches out", which is not really enough, as while yes it does
branch inside the current function, it also traps which is noticeable outside.
To fix that, add a trap effect to track this. implicitTrap will set trap as well,
automatically, if we do not ignore implicit traps, so it is enough to check just
that (unless one cares about the difference between implicit and explicit
ones).
Diffstat (limited to 'src/passes/FuncCastEmulation.cpp')
0 files changed, 0 insertions, 0 deletions