Skip to content

Commit

Permalink
Temporary hack for bug in Row_like join (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshinwell committed Aug 4, 2021
1 parent 07e32c7 commit c9591dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion middle_end/flambda2/types/structures/product.rec.ml
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,11 @@ 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,7 +340,9 @@ let join_variant env
Known (Blocks.join env b1 b2)
in
let blocks =
join_unknown blocks_join env blocks1 blocks2
try (* XXX temporary *)
join_unknown blocks_join env blocks1 blocks2
with (Failure _) -> Or_unknown.Unknown
in
let imms =
join_unknown (T.join ?bound_name:None) env imms1 imms2
Expand Down

0 comments on commit c9591dc

Please sign in to comment.