summaryrefslogtreecommitdiff
path: root/src/passes/FuncCastEmulation.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2020-11-18 16:54:19 -0800
committerGitHub <noreply@github.com>2020-11-18 16:54:19 -0800
commitd0bc3811f00fe90762a9bee19bf354f780704ce5 (patch)
treed020ea52699dffd6bbf6933af040288aeefc2ca8 /src/passes/FuncCastEmulation.cpp
parentf7547064e38bcc8518d6ebf1a2de0d7a76d6ad15 (diff)
downloadbinaryen-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