File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -3162,6 +3162,8 @@ class type type_constraint_graph_int =
31623162class type type_constraint_store_int =
31633163 object
31643164
3165+ method reset : unit
3166+
31653167 method add_constraint : type_constraint_t -> unit
31663168
31673169 method add_var_constraint : type_variable_t -> unit
Original file line number Diff line number Diff line change @@ -70,6 +70,15 @@ object (self)
7070 (* constraints that involve a global variable *)
7171 val gvartypes = H. create 5
7272
73+ method reset =
74+ begin
75+ H. clear store;
76+ H. clear functiontypes;
77+ H. clear reglhss;
78+ H. clear stacklhss;
79+ H. clear gvartypes
80+ end
81+
7382 method add_constraint (c : type_constraint_t ) =
7483 let index = tcd#index_type_constraint c in
7584 (* index the constraint *)
Original file line number Diff line number Diff line change 619619let mk_arm_fn_type_constraints
620620 (store : type_constraint_store_int )
621621 (fn : arm_assembly_function_int ): arm_fn_type_constraints_int =
622- new arm_fn_type_constraints_t store fn
622+ begin
623+ store#reset;
624+ new arm_fn_type_constraints_t store fn
625+ end
You can’t perform that action at this time.
0 commit comments