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:
parent
30011cbb7a
commit
db40f67849
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue