Skip to content

Commit

Permalink
Changements dirers
Browse files Browse the repository at this point in the history
  • Loading branch information
david-michel1 committed May 24, 2024
1 parent 75c5f42 commit 04eb3a7
Show file tree
Hide file tree
Showing 9 changed files with 149 additions and 117 deletions.
6 changes: 4 additions & 2 deletions src/mlang/backend_compilers/bir_to_dgfip_c.ml
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,8 @@ let rec generate_stmt (dgfip_flags : Dgfip_options.flags)
let vcd = Com.CatVar.Map.find vc program.program_var_categories in
let var_indexes =
Mir.VariableMap.add var
(Dgfip_varid.VarRef ("tab_" ^ it_name, vcd.loc, vcd))
(Dgfip_varid.VarRef
("tab_" ^ it_name, Some vcd.loc, Com.Var.loc_int var))
var_indexes
in
Format.fprintf oc "@[<v 2>{@;";
Expand Down Expand Up @@ -531,7 +532,8 @@ let rec generate_stmt (dgfip_flags : Dgfip_options.flags)
let vcd = Com.CatVar.Map.find vc program.program_var_categories in
let var_indexes =
Mir.VariableMap.add var
(Dgfip_varid.VarRef ("tab_" ^ it_name, vcd.loc, vcd))
(Dgfip_varid.VarRef
("tab_" ^ it_name, Some vcd.loc, Com.Var.loc_int var))
var_indexes
in
Format.fprintf oc "@[<v 2>{@;";
Expand Down
Loading

0 comments on commit 04eb3a7

Please sign in to comment.