Skip to content

Commit 81dce95

Browse files
committed
Return lists of lvals to formals
1 parent cdd0c5e commit 81dce95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/entry/jazz2cl.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ let parse_and_print print arch call_conv ecoutput joutput output file funname =
117117
let formals',pre_ghost_instr,post_ghost_instr = CL_vsimpl.GhostVector.unfold_vectors proc.formals proc.ret_vars in
118118
let prog' = pre_ghost_instr @ proc.prog @ post_ghost_instr in
119119
let cfg = CL_vsimpl.Cfg.cfg_of_prog_rev prog' in
120-
let clean_cfg = CL_vsimpl.SimplVector.simpl_cfg cfg formals' in
120+
let clean_cfg = CL_vsimpl.SimplVector.simpl_cfg cfg proc.ret_vars in
121121
let prog' = CL_vsimpl.Cfg.prog_of_cfg clean_cfg in
122122
let (pre_epred, pre_rpred) = proc.pre in
123123
let (post_epred, post_rpred) = proc.post in

compiler/src/toCL.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1892,7 +1892,7 @@ module Mk(O:BaseOp) = struct
18921892
| Lvar x -> [a], [], O.assgn_to_instr trans a e
18931893
| Lnone _ | Lmem _ | Laset _ |Lasub _ -> assert false
18941894
end
1895-
| Copn(xs, _, o, es) -> [], [], pp_sopn i.i_loc.base_loc xs o es trans
1895+
| Copn(xs, _, o, es) -> xs, [], pp_sopn i.i_loc.base_loc xs o es trans
18961896

18971897
let pp_c env fds c =
18981898
(* FIXME: this is really a bad complexity *)

0 commit comments

Comments
 (0)