Skip to content

Commit

Permalink
YJIT: Fill in commented-out assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
XrXr committed Oct 18, 2024
1 parent c4359f9 commit b3faaad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions yjit/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10473,9 +10473,8 @@ fn reg_method_codegen(klass: VALUE, mid_str: &str, gen_fn: MethodGenFn) {
panic!("undefined optimized method!: {mid_str}");
}

// For now, only cfuncs are supported
//RUBY_ASSERT(me && me->def);
//RUBY_ASSERT(me->def->type == VM_METHOD_TYPE_CFUNC);
// For now, only cfuncs are supported (me->cme cast fine since it's just me->def->type).
debug_assert_eq!(VM_METHOD_TYPE_CFUNC, unsafe { get_cme_def_type(me.cast()) });

let method_serial = unsafe {
let def = (*me).def;
Expand Down

0 comments on commit b3faaad

Please sign in to comment.