소스 검색

[analyzer] properly recurse after awkwardly finding an enum value

Simon Krajewski 10 년 전
부모
커밋
642d8a0b28
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      analyzer.ml

+ 5 - 2
analyzer.ml

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