File tree Expand file tree Collapse file tree
src/mlang/backend_compilers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ let generate_local_defs (oc : Format.formatter)
143143 (Format. pp_print_list ~pp_sep: pp_statement_separator format_local_set)
144144 defs
145145
146- let generate_var_def (variable : Bir.variable ) (vdata : Bir.variable_data )
146+ let generate_var_def (variable : Bir.variable ) (def : Bir.variable_def )
147147 (oc : Format.formatter ) : unit =
148148 let generate_one_var position oc (e : Bir.expression Pos.marked ) : unit =
149149 let tgv_expression, local_defs = generate_ocaml_expr e in
@@ -152,7 +152,7 @@ let generate_var_def (variable : Bir.variable) (vdata : Bir.variable_data)
152152 (format_tgv_set tgv_expression)
153153 position
154154 in
155- match vdata.var_definition with
155+ match def with
156156 | SimpleVar e -> generate_one_var (get_var_pos variable) oc e
157157 | TableVar (_ , IndexTable es ) ->
158158 let bindings_list = Mir.IndexMap. bindings es in
You can’t perform that action at this time.
0 commit comments