diff options
author | Yusuke Endoh <[email protected]> | 2019-12-09 13:49:24 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2019-12-09 13:49:24 +0900 |
commit | 3cdb37d9db9b7776f6adf96c70eacc39773718b4 (patch) | |
tree | 69405deb275df8e8f48a1b4d3d218293204decbe /vm_args.c | |
parent | 39c7230a7a7a039639d2cb3587c054554a1beb18 (diff) |
Revert "vm_args.c (rb_warn_check): Use iseq_unique_id instead of its pointer"
This reverts commit 036bc1da6c6c9b0fa9b7f5968d897a9554dd770e.
This caused a failure on iseq_binary mode.
http://ci.rvm.jp/results/trunk-iseq_binary@silicon-docker/2474587
Numbering iseqs is not trivial due to dump/load.
Diffstat (limited to 'vm_args.c')
-rw-r--r-- | vm_args.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -593,12 +593,8 @@ VALUE rb_iseq_location(const rb_iseq_t *iseq); */ static st_table *caller_to_callees = 0; -static VALUE rb_warn_check(const rb_execution_context_t * const ec, const rb_iseq_t *const iseq) +static VALUE rb_warn_check(const rb_execution_context_t * const ec, const void *const callee) { - if (!iseq) return 0; - - const void *const callee = (void *)iseq->body->iseq_unique_id; - const rb_control_frame_t * const cfp = rb_vm_get_ruby_level_next_cfp(ec, ec->cfp); if (!cfp) return 0; |