Browse Source

always force inlining of function parameters (issue #233)

Nicolas Cannasse 14 years ago
parent
commit
ec635b8a81
1 changed files with 1 additions and 1 deletions
  1. 1 1
      optimizer.ml

+ 1 - 1
optimizer.ml

@@ -147,7 +147,7 @@ let type_inline ctx cf f ethis params tret p =
 	Hashtbl.add hcount vthis this_count;
 	Hashtbl.add hcount vthis this_count;
 	let vars = List.map2 (fun (n,t) e ->
 	let vars = List.map2 (fun (n,t) e ->
 		let flag = not (Hashtbl.mem lsets n) && (match e.eexpr with
 		let flag = not (Hashtbl.mem lsets n) && (match e.eexpr with
-			| TLocal _ | TConst _ -> true
+			| TLocal _ | TConst _ | TFunction _ -> true
 			| _ ->
 			| _ ->
 				let used = !(Hashtbl.find hcount n) in
 				let used = !(Hashtbl.find hcount n) in
 				used <= 1
 				used <= 1