diff options
author | Björn Gustavsson <bjorn@erlang.org> | 2020-06-17 10:22:58 +0200 |
---|---|---|
committer | Björn Gustavsson <bjorn@erlang.org> | 2020-06-18 08:44:37 +0200 |
commit | 5ffbf569c3817cb09ca4780802eddc7c7319f354 (patch) | |
tree | 76d56e3dd9e4caaeb03b34988d9074bc78e207f7 /erts/emulator/beam/instrs.tab | |
parent | e79ff7cab1776b1d71b079064f039adb7aa101e7 (diff) | |
download | erlang-5ffbf569c3817cb09ca4780802eddc7c7319f354.tar.gz |
Remove unreachable bs_put* instructions
bs_put* instructions with invalid sizes used to be converted to badarg
instructions. This is unnecessary, since bs_add or bs_init* will raise
an exception if the size is invalid. Therefore, if the size for a
bs_put* instruction is invalid, simply remove the instruction.
Diffstat (limited to 'erts/emulator/beam/instrs.tab')
-rw-r--r-- | erts/emulator/beam/instrs.tab | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/erts/emulator/beam/instrs.tab b/erts/emulator/beam/instrs.tab index 697c777825..a9e1dd1bfe 100644 --- a/erts/emulator/beam/instrs.tab +++ b/erts/emulator/beam/instrs.tab @@ -1035,12 +1035,6 @@ is_ge_literal(Fail, X, Y) { CMP_GE_LITERAL_ACTION($X, $Y, $FAIL($Fail)); } -badarg_body() { - c_p->freason = BADARG; - $FAIL_BODY(); - //| -no_next; -} - badmatch(Src) { c_p->fvalue = $Src; c_p->freason = BADMATCH; |