Skip to content

Commit

Permalink
More sensible style as suggested by xavierleroy
Browse files Browse the repository at this point in the history
  • Loading branch information
fabbing committed Feb 21, 2022
1 parent 54e7027 commit 5d512e0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions asmcomp/amd64/emit.mlp
Original file line number Diff line number Diff line change
Expand Up @@ -804,9 +804,10 @@ let emit_instr env fallthrough i =
done;
emit_named_text_section env.f.fun_name
| Lentertrap ->
if fp then
let delta = (frame_size env) - 16 (* retaddr + rbp *) in
I.lea (mem64 NONE delta RSP) rbp;
if fp then begin
let delta = frame_size env - 16 (* retaddr + rbp *) in
I.lea (mem64 NONE delta RSP) rbp
end;
| Ladjust_trap_depth { delta_traps; } ->
(* each trap occupies 16 bytes on the stack *)
let delta = 16 * delta_traps in
Expand Down

0 comments on commit 5d512e0

Please sign in to comment.