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

vm_insnhelper.c: stop unnecessarily using rb_sprintf

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2018-09-11 11:01:18 +00:00
parent 30011cbb7a
commit db40f67849

View file

@ -3926,10 +3926,8 @@ vm_canary_is_found_dead(enum ruby_vminsn_type i, VALUE c)
const char *insn = rb_insns_name(i);
VALUE inspection = rb_inspect(c);
const char *str = StringValueCStr(inspection);
VALUE message = rb_sprintf("dead canary found at %s: %s", insn, str);
const char *msg = StringValueCStr(message);
rb_bug("%s", msg);
rb_bug("dead canary found at %s: %s", insn, str);
}
#elif !defined(MJIT_HEADER)