Skip to content

Commit

Permalink
rev_map constructor inlining initializations so they have the correct…
Browse files Browse the repository at this point in the history
… order when reversed by the TBlock handler (closes #2455)
  • Loading branch information
Simn committed Dec 11, 2013
1 parent 186555b commit adb90b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimizer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ let inline_constructors ctx e =
{e with eexpr = TBlock (List.rev n)}
| TVar (v,Some e) when v.v_id < 0 ->
let (vars, _),el_init = PMap.find (-v.v_id) vfields in
el_b := (List.map subst el_init) @ !el_b;
el_b := (List.rev_map subst el_init) @ !el_b;
let (v_first,e_first),vars = match vars with
| v :: vl -> v,vl
| [] -> assert false
Expand Down

0 comments on commit adb90b7

Please sign in to comment.