[sledge] Avoid wildcard exception handler

Reviewed By: ngorogiannis

Differential Revision: D18736383

fbshipit-source-id: 7c87307ff
master
Josh Berdine 5 years ago committed by Facebook Github Bot
parent f2be1cbed0
commit b1a6928a50

@ -104,7 +104,8 @@ and apron_texpr_of_llair_term tm q typ =
| Integer {data} -> Some (Texpr1.Cst (Coeff.s_of_int (Z.to_int data)))
| Float {data} ->
let f =
try Float.of_string data with _ -> failwith "malformed float: %s"
try Float.of_string data
with Invalid_argument _ -> failwith "malformed float: %s"
in
Some (Texpr1.Cst (Coeff.s_of_float f))
| Ap1 (Convert {dst; src}, t) -> (

Loading…
Cancel
Save