Browse Source

Php and Flash don't like complex static inits either

Simon Krajewski 7 months ago
parent
commit
22fa51d531
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/optimization/analyzer.ml

+ 1 - 1
src/optimization/analyzer.ml

@@ -1010,7 +1010,7 @@ module Run = struct
 			| TFunction tf ->
 			| TFunction tf ->
 				let get_t t = if ExtType.is_void t then tf.tf_type else t in
 				let get_t t = if ExtType.is_void t then tf.tf_type else t in
 				let doesnt_like_complex_expressions = match actx.com.platform with
 				let doesnt_like_complex_expressions = match actx.com.platform with
-					| Cpp | Hl | Jvm ->
+					| Cpp | Hl | Jvm | Php | Flash ->
 						true
 						true
 					| _ ->
 					| _ ->
 						false
 						false