Quellcode durchsuchen

always run blockify_ast so we can be sure that all variables find a place when inlining constructors

Simon Krajewski vor 11 Jahren
Ursprung
Commit
22207d5620
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      filters.ml

+ 1 - 1
filters.ml

@@ -141,7 +141,6 @@ let handle_side_effects com gen_temp e =
 		in
 		List.map loop (loop2 [] (List.rev el))
 	in
-	let e = blockify_ast e in
 	let e = loop e in
 	match close_block() with
 		| [] ->
@@ -1073,6 +1072,7 @@ let run com tctx main =
 	(* PASS 1: general expression filters *)
  	let filters = [
 		Codegen.Abstract.handle_abstract_casts tctx;
+		blockify_ast;
 		(match com.platform with
 			| Cpp -> (fun e ->
 				let save = save_locals tctx in