Skip to content

Commit 9f9afcf

Browse files
committed
Compiler: remove deadcode
1 parent 8a33c3c commit 9f9afcf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

compiler/lib/eval.ml

-4
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,6 @@ let eval_prim x =
214214
Some (Float (ldexp f (Targetint.to_int_exn i)))
215215
(* int32 *)
216216
| "caml_int32_bits_of_float", [ Float f ] -> int32 (Int32.bits_of_float f)
217-
| "caml_int32_float_of_bits", [ Int i ] ->
218-
Some (Float (Int32.float_of_bits (Targetint.to_int32 i)))
219217
| "caml_int32_float_of_bits", [ Int32 i ] -> Some (Float (Int32.float_of_bits i))
220218
| "caml_int32_of_float", [ Float f ] -> int32 (Int32.of_float f)
221219
| "caml_int32_to_float", [ Int32 i ] -> Some (Float (Int32.to_float i))
@@ -241,8 +239,6 @@ let eval_prim x =
241239
| "caml_nativeint_to_int32", [ NativeInt i ] -> Some (Int32 i)
242240
(* nativeint *)
243241
| "caml_nativeint_bits_of_float", [ Float f ] -> nativeint (Int32.bits_of_float f)
244-
| "caml_nativeint_float_of_bits", [ Int i ] ->
245-
Some (Float (Int32.float_of_bits (Targetint.to_int32 i)))
246242
| "caml_nativeint_float_of_bits", [ NativeInt i ] ->
247243
Some (Float (Int32.float_of_bits i))
248244
| "caml_nativeint_of_float", [ Float f ] -> nativeint (Int32.of_float f)

0 commit comments

Comments
 (0)