Skip to content

Commit

Permalink
Revert "Temporary hack for bug in Row_like join (ocaml-flambda#137)"
Browse files Browse the repository at this point in the history
This reverts commit c9591dc.
  • Loading branch information
chambart committed Aug 4, 2021
1 parent c9591dc commit 69484b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions middle_end/flambda2/types/structures/product.rec.ml
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,9 @@ module Int_indexed = struct

let join env t1 t2 =
if not (Flambda_kind.equal t1.kind t2.kind) then begin
failwith "mismatching kinds" (* XXX temporary *)
(*
Misc.fatal_errorf "Product.Int_indexed.join between mismatching \
kinds %a and %a@."
Flambda_kind.print t1.kind Flambda_kind.print t2.kind *)
Flambda_kind.print t1.kind Flambda_kind.print t2.kind
end;
let fields1 = t1.fields in
let fields2 = t2.fields in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,7 @@ let join_variant env
Known (Blocks.join env b1 b2)
in
let blocks =
try (* XXX temporary *)
join_unknown blocks_join env blocks1 blocks2
with (Failure _) -> Or_unknown.Unknown
join_unknown blocks_join env blocks1 blocks2
in
let imms =
join_unknown (T.join ?bound_name:None) env imms1 imms2
Expand Down

0 comments on commit 69484b9

Please sign in to comment.