Browse Source

[analyzer] properly recurse after awkwardly finding an enum value

Simon Krajewski 10 years ago
parent
commit
642d8a0b28
1 changed files with 5 additions and 2 deletions
  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