Skip to content

Commit be69a34

Browse files
committed
Eta-reduce ask_of_ctx to avoid function allocation
1 parent e402150 commit be69a34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/framework/analyses.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ exception Ctx_failure of string
370370
let ctx_failwith s = raise (Ctx_failure s) (* TODO: use everywhere in ctx *)
371371

372372
(** Convert [ctx] to [Queries.ask]. *)
373-
let ask_of_ctx ctx: Queries.ask = { Queries.f = fun (type a) (q: a Queries.t) -> ctx.ask q }
373+
let ask_of_ctx ctx: Queries.ask = { Queries.f = ctx.ask }
374374

375375

376376
module type Spec =

0 commit comments

Comments
 (0)