Skip to content

Commit 4632466

Browse files
authored
Merge pull request #1595 from ishaan-arora-1/fix/replace-assert-false-with-ice
Replace assert false with ICE in Info.ml
2 parents d111d2a + 066fd2b commit 4632466

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/frontend/Info.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ let rec unsized_basetype_json t =
1919
`Assoc
2020
[ ("type", `List (List.map ~f:unsized_basetype_json internals))
2121
; ("dimensions", `Int dims) ]
22-
| UMathLibraryFunction | UFun _ | UArray _ -> assert false
22+
| (UMathLibraryFunction | UFun _ | UArray _) as t ->
23+
Common.ICE.internal_compiler_error
24+
[%message
25+
"Unexpected unsized type in unsized_basetype_json" (t : UnsizedType.t)]
2326

2427
let basetype_dims t = SizedType.to_unsized t |> unsized_basetype_json
2528

0 commit comments

Comments
 (0)