Parcourir la source

optimize : (const) => const

Nicolas Cannasse il y a 16 ans
Parent
commit
cb2982b247
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      optimizer.ml

+ 2 - 0
optimizer.ml

@@ -421,6 +421,8 @@ let rec reduce_loop com is_sub e =
 			{ e with eexpr = TBlock body }
 			{ e with eexpr = TBlock body }
 		with
 		with
 			Exit -> e)
 			Exit -> e)
+	| TParenthesis ({ eexpr = TConst _ } as ec) ->
+		{ ec with epos = e.epos }
 	| _ -> 
 	| _ -> 
 		e
 		e