Browse Source

bugfix : don't inline constructors when a method is called

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

+ 1 - 1
optimizer.ml

@@ -1021,7 +1021,7 @@ let inline_constructors ctx e =
 							())
 				| _ -> ()
 			) vl
-		| TField ({ eexpr = TLocal _ },_) ->
+		| TField ({ eexpr = TLocal _ },FInstance (_,{ cf_kind = Var _ })) ->
 			()
 		| TLocal v when v.v_id < 0 ->
 			v.v_id <- -v.v_id;