Skip to content

Commit 6a1c5a4

Browse files
voltonejosevalim
authored andcommitted
Fix elixir_erl:debug_info/4 returning core_v1 (#12376)
1 parent c31d1b3 commit 6a1c5a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/src/elixir_erl.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ debug_info(core_v1, _Module, {elixir_v1, Map, Specs}, Opts) ->
2424
%% warnings nor the other functionality provided there.
2525
case elixir_erl_compiler:erl_to_core(Prefix ++ Specs ++ Forms, AllOpts) of
2626
{ok, CoreForms, _} ->
27-
try compile:noenv_forms(CoreForms, [no_spawn_compiler_process, from_core, core, return | AllOpts]) of
27+
try compile:noenv_forms(CoreForms, [no_spawn_compiler_process, from_core, to_core, return | AllOpts]) of
2828
{ok, _, Core, _} -> {ok, Core};
2929
_What -> {error, failed_conversion}
3030
catch

0 commit comments

Comments
 (0)