Skip to content

Commit

Permalink
fixup! Store abstract code in the Dbgi chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorng committed Apr 25, 2017
1 parent 0f78f26 commit 7bbd4eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/stdlib/src/erl_abstract_code.erl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ debug_info(_, _, _, _) ->
{error, unknown_format}.

delete_reports(Opts) ->
Opts -- [report_warnings, report_errors].
[Opt || Opt <- Opts, not is_report_option(Opt)].

is_report_option(report) -> true;
is_report_option(report_errors) -> true;
is_report_option(report_warnings) -> true;
is_report_option(_) -> false.

add_core_returns(Opts) ->
[to_core, return_errors, return_warnings] ++ Opts.

0 comments on commit 7bbd4eb

Please sign in to comment.