@@ -798,17 +798,16 @@ let direct_apply env fundesc ufunct uargs ~loc ~attribute =
798798 then app
799799 else Usequence (ufunct, app)
800800
801- (* Add [Value_integer] or [Value_constptr] info to the approximation
802- of an application *)
801+ (* Add [Value_integer] info to the approximation of an application *)
803802
804803let strengthen_approx appl approx =
805804 match approx_ulam appl with
806805 (Value_const _ ) as intapprox ->
807806 intapprox
808807 | _ -> approx
809808
810- (* If a term has approximation Value_integer or Value_constptr and is pure,
811- replace it by an integer constant *)
809+ (* If a term has approximation Value_integer and is pure, replace it by an
810+ integer constant *)
812811
813812let check_constant_result ulam approx =
814813 match approx with
@@ -1070,12 +1069,14 @@ let rec close ({ backend; fenv; cenv ; mutable_vars } as env) lam =
10701069 close env arg
10711070 | Lprim (Pdirapply ,[funct;arg], loc)
10721071 | Lprim (Prevapply,[arg ;funct ], loc ) ->
1073- close env (Lapply {ap_loc= loc;
1074- ap_func= funct;
1075- ap_args= [arg];
1076- ap_tailcall= Default_tailcall ;
1077- ap_inlined= Default_inline ;
1078- ap_specialised= Default_specialise })
1072+ close env
1073+ (Lapply {ap_loc= loc;
1074+ ap_func= funct;
1075+ ap_args= [arg];
1076+ ap_tailcall= Default_tailcall ;
1077+ ap_inlined= Default_inline ;
1078+ ap_specialised= Default_specialise
1079+ })
10791080 | Lprim (Pgetglobal id , [] , loc ) ->
10801081 let dbg = Debuginfo. from_location loc in
10811082 check_constant_result (getglobal dbg id)
0 commit comments