diff options
author | Björn Gustavsson <bjorn@erlang.org> | 2020-01-30 06:26:38 +0100 |
---|---|---|
committer | Björn Gustavsson <bjorn@erlang.org> | 2020-01-30 14:14:03 +0100 |
commit | a384acf2194afb7f0e7c22069f951d153de3c0de (patch) | |
tree | f340426e481c9d8bfef391cc7d7a652a52ff984f /lib/hipe | |
parent | 4ba300fc9ce5a01419d290f813a00c935fcc14ea (diff) | |
download | erlang-a384acf2194afb7f0e7c22069f951d153de3c0de.tar.gz |
HiPE: Don't allow shared catch instructions
Diffstat (limited to 'lib/hipe')
-rw-r--r-- | lib/hipe/icode/hipe_beam_to_icode.erl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/hipe/icode/hipe_beam_to_icode.erl b/lib/hipe/icode/hipe_beam_to_icode.erl index 8e7e56b6c4..efdaeecca3 100644 --- a/lib/hipe/icode/hipe_beam_to_icode.erl +++ b/lib/hipe/icode/hipe_beam_to_icode.erl @@ -2303,9 +2303,7 @@ fix_catch(Type, Lbl, ContLbl, Code, HandledCatchLbls, Instr) -> TLbl = {Type, Lbl}, case gb_trees:lookup(TLbl, HandledCatchLbls) of {value, Catch} when is_integer(Catch) -> - NewCode = fix_catches(Code, HandledCatchLbls), - Cont = hipe_icode:label_name(ContLbl), - [hipe_icode:mk_begin_try(Catch,Cont),ContLbl | NewCode]; + nyi(unsafe_catch); none -> OldCatch = map_label(Lbl), OldCatchLbl = hipe_icode:mk_label(OldCatch), |