Skip to content

Commit 509e715

Browse files
committed
Support fetching abstract code for modules compiled with Elixir v1.14 and earlier, closes #14987
1 parent a6951d0 commit 509e715

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/elixir/src/elixir_erl_pass.erl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,11 @@ extract_bit_type({'-', _, [L, R]}, Acc) ->
551551
extract_bit_type({unit, _, [Arg]}, Acc) ->
552552
[{unit, Arg} | Acc];
553553
extract_bit_type({Other, _, nil}, Acc) ->
554+
[Other | Acc];
555+
%% TODO: Remove me on Elixir v2.0.
556+
%% Elixir v1.14 and earlier emitted an empty list
557+
%% and may still be processed via debug_info.
558+
extract_bit_type({Other, _, []}, Acc) ->
554559
[Other | Acc].
555560

556561
%% Optimizations that are specific to Erlang and change

lib/elixir/src/elixir_erl_try.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ each_clause({'catch', Meta, Raw, Expr}, S) ->
2727
{Args, Guards} = elixir_utils:extract_splat_guards(Raw),
2828

2929
Match =
30+
%% TODO: Remove me on Elixir v2.0.
3031
%% Elixir v1.17 and earlier emitted single argument
31-
%% and may still be processed via debug_info
32+
%% and may still be processed via debug_info.
3233
case Args of
3334
[X] -> [throw, X];
3435
[X, Y] -> [X, Y]

0 commit comments

Comments
 (0)