Browse Source

do not lose expressions while inlining constructors

Simon Krajewski 9 years ago
parent
commit
a0de96240c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      optimizer.ml

+ 1 - 1
optimizer.ml

@@ -1344,7 +1344,7 @@ let inline_constructors ctx e =
 					List.iter find_locals el;
 					begin match List.rev el with
 					| e1 :: el ->
-						loop el e1
+						loop (el @ el_init) e1
 					| [] ->
 						()
 					end