diff options
author | Sverker Eriksson <[email protected]> | 2016-10-26 17:22:32 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-10-26 17:41:05 +0200 |
commit | 3223059923314313ffff9c7b09ab0a73bf18238b (patch) | |
tree | b7e3b2671f430642c9d5c0a3bc3da115e37e9a2e /erts/emulator/hipe | |
parent | 42b9881d075344344a8c78026e282b40fa707a0c (diff) | |
download | otp-3223059923314313ffff9c7b09ab0a73bf18238b.tar.gz otp-3223059923314313ffff9c7b09ab0a73bf18238b.tar.bz2 otp-3223059923314313ffff9c7b09ab0a73bf18238b.zip |
erts: Remove unused argument to hipe_set_closure_stub
Diffstat (limited to 'erts/emulator/hipe')
-rw-r--r-- | erts/emulator/hipe/hipe_mode_switch.c | 7 | ||||
-rw-r--r-- | erts/emulator/hipe/hipe_mode_switch.h | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/erts/emulator/hipe/hipe_mode_switch.c b/erts/emulator/hipe/hipe_mode_switch.c index ed95045292..0706f8d2c9 100644 --- a/erts/emulator/hipe/hipe_mode_switch.c +++ b/erts/emulator/hipe/hipe_mode_switch.c @@ -718,12 +718,9 @@ void hipe_empty_nstack(Process *p) p->hipe.nstend = NULL; } -void hipe_set_closure_stub(ErlFunEntry *fe, unsigned num_free) +void hipe_set_closure_stub(ErlFunEntry *fe) { - unsigned arity; - - arity = fe->arity; - fe->native_address = (Eterm*) hipe_closure_stub_address(arity); + fe->native_address = (Eterm*) hipe_closure_stub_address(fe->arity); } Eterm hipe_build_stacktrace(Process *p, struct StackTrace *s) diff --git a/erts/emulator/hipe/hipe_mode_switch.h b/erts/emulator/hipe/hipe_mode_switch.h index c40077d558..334e978307 100644 --- a/erts/emulator/hipe/hipe_mode_switch.h +++ b/erts/emulator/hipe/hipe_mode_switch.h @@ -59,7 +59,7 @@ void hipe_set_call_trap(Uint *bfun, void *nfun, int is_closure); Process *hipe_mode_switch(Process*, unsigned, Eterm*); void hipe_inc_nstack(Process *p); void hipe_empty_nstack(Process *p); -void hipe_set_closure_stub(ErlFunEntry *fe, unsigned num_free); +void hipe_set_closure_stub(ErlFunEntry *fe); Eterm hipe_build_stacktrace(Process *p, struct StackTrace *s); ERTS_GLB_INLINE void hipe_reserve_beam_trap_frame(Process*, Eterm reg[], unsigned arity); |