We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b5660d commit 68488a9Copy full SHA for 68488a9
compiler/lib/effects.ml
@@ -947,6 +947,12 @@ let cps_transform ~live_vars ~flow_info ~cps_needed p =
947
subst_bound_in_blocks st.new_blocks cloned_subst)
948
else st.new_blocks
949
in
950
+ let blocks =
951
+ (* Remove the initial block added only for the CPS transformation *)
952
+ if double_translate () && start <> initial_start
953
+ then Addr.Map.remove start blocks
954
+ else blocks
955
+ in
956
let blocks = Addr.Map.fold Addr.Map.add new_blocks blocks in
957
if debug () then Format.eprintf "@.";
958
{ p with blocks; free_pc = st.free_pc })
0 commit comments