Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare translation of primitives in lambda_to_flambda for unboxed products #1465

Merged
merged 10 commits into from
Jun 14, 2023
Prev Previous commit
Next Next commit
Tweaks to error messages 3
  • Loading branch information
mshinwell authored and Ekdohibs committed Jun 14, 2023
commit 7789f4ffad74a3ce026e6ebf907fd82753fb08f3
Original file line number Diff line number Diff line change
Expand Up @@ -1106,8 +1106,8 @@ let convert_lprim ~big_endian (prim : L.primitive) (args : Simple.t list list)
| [arg] -> arg
| [] | _ :: _ :: _ ->
Misc.fatal_errorf "Non-singleton arguments for Pbigarrayref: %a %a"
Printlambda.primitive prim H.print_list_of_simple_or_prim
(List.flatten args))
Printlambda.primitive prim H.print_list_of_lists_of_simple_or_prim
args)
args
in
match
Expand Down Expand Up @@ -1142,8 +1142,8 @@ let convert_lprim ~big_endian (prim : L.primitive) (args : Simple.t list list)
| [arg] -> arg
| [] | _ :: _ :: _ ->
Misc.fatal_errorf "Non-singleton arguments for Pbigarrayset: %a %a"
Printlambda.primitive prim H.print_list_of_simple_or_prim
(List.flatten args))
Printlambda.primitive prim H.print_list_of_lists_of_simple_or_prim
args)
args
in
match
Expand Down