浏览代码

do not lose expressions while inlining constructors

Simon Krajewski 9 年之前
父节点
当前提交
a0de96240c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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