summaryrefslogtreecommitdiff
path: root/compiler/InterpreterUtils.ml
diff options
context:
space:
mode:
authorSon Ho2023-11-13 14:17:55 +0100
committerSon Ho2023-11-13 14:17:55 +0100
commitcb179ba97d2eafac07ac1208ab1e6ab4446f89df (patch)
tree2f48417732c107ca64074a3ad7a3c3c95d37b598 /compiler/InterpreterUtils.ml
parent6c88d30031255c0ac612b67bb5b3c20c2f07e563 (diff)
Make minor modifications
Diffstat (limited to 'compiler/InterpreterUtils.ml')
-rw-r--r--compiler/InterpreterUtils.ml8
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler/InterpreterUtils.ml b/compiler/InterpreterUtils.ml
index 5e2746c5..e5a5b2ea 100644
--- a/compiler/InterpreterUtils.ml
+++ b/compiler/InterpreterUtils.ml
@@ -463,7 +463,8 @@ let initialize_eval_context (ctx : C.decls_ctx)
evaluating in symbolic mode).
*)
let instantiate_fun_sig (ctx : C.eval_ctx) (generics : T.generic_args)
- (tr_self : T.trait_instance_id) (sg : A.fun_sig) : A.inst_fun_sig =
+ (tr_self : T.trait_instance_id) (sg : A.fun_sig)
+ (regions_hierarchy : T.region_groups) : A.inst_fun_sig =
log#ldebug
(lazy
("instantiate_fun_sig:" ^ "\n- generics: "
@@ -474,11 +475,6 @@ let instantiate_fun_sig (ctx : C.eval_ctx) (generics : T.generic_args)
(* Erase the regions in the generics we use for the instantiation *)
let generics = Subst.generic_args_erase_regions generics in
let tr_self = Subst.trait_instance_id_erase_regions tr_self in
- (* Compute the regions hierarchy *)
- let regions_hierarchy =
- RegionsHierarchy.compute_regions_hierarchy_for_sig
- ctx.type_context.type_decls sg
- in
(* Generate fresh abstraction ids and create a substitution from region
* group ids to abstraction ids *)
let rg_abs_ids_bindings =