Skip to content

Commit

Permalink
flambda-backend: Fix a bug with warning 199 and -stop-after typing (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ccasin authored Apr 30, 2024
1 parent 467ae7b commit 3d26bbe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions driver/compile_common.ml
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@ let implementation ~hook_parse_tree ~hook_typed_tree info ~backend =
let typed = typecheck_impl info parsed in
hook_typed_tree typed;
if Clflags.(should_stop_after Compiler_pass.Typing) then () else begin
backend info typed
backend info typed;
end;
end;
Builtin_attributes.warn_unchecked_property ();
if not (Clflags.(should_stop_after Compiler_pass.Selection)) then
Builtin_attributes.warn_unchecked_property ();
Warnings.check_fatal ();
)

0 comments on commit 3d26bbe

Please sign in to comment.