Skip to content

Commit a29cdb2

Browse files
committed
Small fix
1 parent 3d53fb6 commit a29cdb2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

middle_end/flambda/simplify/simplify_primitive.ml

+5-4
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@ let apply_cse dacc ~original_prim =
2929
match DE.find_cse (DA.denv dacc) with_fixed_value with
3030
| None -> None
3131
| Some simple ->
32-
let canonical =
32+
match
3333
TE.get_canonical_simple_exn (DA.typing_env dacc) simple
3434
~min_name_mode:NM.normal
3535
~name_mode_of_existing_simple:NM.normal
36-
in
37-
match canonical with
38-
| exception Not_found -> None
36+
with
37+
| exception Not_found ->
38+
(* CR pchambart: is this really reachable ? Should this be a fatal_error ? *)
39+
None
3940
| simple -> Some simple
4041

4142
let try_cse dacc ~original_prim ~simplified_args_with_tys ~min_name_mode

0 commit comments

Comments
 (0)