summaryrefslogtreecommitdiff
path: root/lib/hipe
diff options
context:
space:
mode:
authorBjörn Gustavsson <bjorn@erlang.org>2020-01-30 06:26:38 +0100
committerBjörn Gustavsson <bjorn@erlang.org>2020-01-30 14:14:03 +0100
commita384acf2194afb7f0e7c22069f951d153de3c0de (patch)
treef340426e481c9d8bfef391cc7d7a652a52ff984f /lib/hipe
parent4ba300fc9ce5a01419d290f813a00c935fcc14ea (diff)
downloaderlang-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.erl4
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),