1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix GCC warning

This commit is contained in:
Maxime Chevalier-Boisvert 2020-10-27 14:30:33 -04:00 committed by Alan Wu
parent 81e7091862
commit 5413d0918b
2 changed files with 1 additions and 4 deletions

View file

@ -581,9 +581,6 @@ gen_opt_send_without_block(codeblock_t* cb, codeblock_t* ocb, ctx_t* ctx)
cmp(cb, REG0, mem_opnd(64, REG1, offsetof(struct rb_callcache, klass)));
jne_ptr(cb, side_exit);
// NOTE: there *has to be* a way to optimize the entry invalidated check
// Could we have Ruby invalidate the JIT code instead of invalidating CME?
//
// Check that the method entry is not invalidated
// cd->cc->cme->flags
// #define METHOD_ENTRY_INVALIDATED(me) ((me)->flags & IMEMO_FL_USER5)

View file

@ -55,7 +55,7 @@ void print_int(codeblock_t* cb, x86opnd_t opnd)
pop_regs(cb);
}
static void print_ptr_cfun(int64_t val)
static void print_ptr_cfun(void* val)
{
printf("%llX\n", val);
}