|
@@ -2013,7 +2013,7 @@ module CopyPropagation = DataFlow(struct
|
|
let commit ctx =
|
|
let commit ctx =
|
|
(* We don't care about the scope on JS and AS3 because they hoist var declarations. *)
|
|
(* We don't care about the scope on JS and AS3 because they hoist var declarations. *)
|
|
let in_scope bb bb' = match ctx.com.platform with
|
|
let in_scope bb bb' = match ctx.com.platform with
|
|
- | Js _ -> true
|
|
|
|
|
|
+ | Js -> true
|
|
| Flash when Common.defined ctx.com Define.As3 -> true
|
|
| Flash when Common.defined ctx.com Define.As3 -> true
|
|
| _ -> List.mem (List.hd bb'.bb_scopes) bb.bb_scopes
|
|
| _ -> List.mem (List.hd bb'.bb_scopes) bb.bb_scopes
|
|
in
|
|
in
|