Explorar o código

ignore `else false` cases in check_local_vars_init to avoid problems with the side-effect handler

Simon Krajewski %!s(int64=11) %!d(string=hai) anos
pai
achega
0959aea7b4
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      filters.ml

+ 2 - 0
filters.ml

@@ -275,6 +275,8 @@ let check_local_vars_init e =
 			loop vars e2;
 			(match eo with
 			| None -> vars := vbase
+			(* ignore else false cases (they are added by the side-effect handler) *)
+			| Some {eexpr = TConst (TBool(false))} -> ()
 			| Some e ->
 				let v1 = !vars in
 				vars := vbase;