summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-07-06 11:51:53 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-07-10 12:23:41 +0900
commitdb7f3496dd4485149c68912677f231dc434824b7 (patch)
tree50b82d84d60d158ac3d3a17c448dac7523f7ae75 /vm_insnhelper.c
parentba81bc24e62d03cc0f4c05cf4e2b378696631568 (diff)
nobody uses the return value of vm_push_frame
Surprised to see such a waste of time in this super duper hot path.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3296
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index f2cab2f4b5..c98dfa87e7 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -287,7 +287,7 @@ vm_check_canary(const rb_execution_context_t *ec, VALUE *sp)
#define vm_check_frame(a, b, c, d)
#endif /* VM_CHECK_MODE > 0 */
-static inline rb_control_frame_t *
+static void
vm_push_frame(rb_execution_context_t *ec,
const rb_iseq_t *iseq,
VALUE type,
@@ -370,8 +370,6 @@ vm_push_frame(rb_execution_context_t *ec,
}
}
#endif
-
- return cfp;
}
/* return TRUE if the frame is finished */