浏览代码

[analyzer] put anti-php measures in the right place

Simon Krajewski 10 年之前
父节点
当前提交
df5c7ffcff
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      analyzer.ml

+ 2 - 2
analyzer.ml

@@ -1013,7 +1013,7 @@ module ConstPropagation = struct
 			with Not_found ->
 				false
 			end
-		| TEnumParameter _ ->
+		| TEnumParameter _ when not (com.platform = Php) ->
 			true
 		| _ ->
 			false
@@ -1082,7 +1082,7 @@ module ConstPropagation = struct
 				e'
 			else
 				e
- 		| TEnumParameter(e1,ef,i) when not (ssa.com.platform = Php) ->
+ 		| TEnumParameter(e1,ef,i) ->
 			let ev = value ssa true e1 in
 			begin try
 				value ssa force (semi_awkward_enum_value ssa ev i)