Explorar o código

bugfix : "return" is considered a branch

Nicolas Cannasse %!s(int64=16) %!d(string=hai) anos
pai
achega
0c5ab42b9a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      genswf9.ml

+ 2 - 0
genswf9.ml

@@ -876,10 +876,12 @@ let rec gen_expr_content ctx retval e =
 		) vl
 	| TReturn None ->
 		write ctx HRetVoid;
+		ctx.infos.icond <- true;
 		no_value ctx retval
 	| TReturn (Some e) ->
 		gen_expr ctx true e;
 		write ctx HRet;
+		ctx.infos.icond <- true;
 		no_value ctx retval
 	| TField _
 	| TLocal _