aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-11 11:01:18 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-11 11:01:18 +0000
commit8187d40b23d7e6d882888c186c24875acae9dc32 (patch)
tree37abc77cc368007d0fe92cd4b557dcd4bfcb8553 /vm_insnhelper.c
parentc170e63acc05642853bd408be7933873fa7ef791 (diff)
downloadruby-8187d40b23d7e6d882888c186c24875acae9dc32.tar.gz
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
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index c4018f8f2e..0374744756 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -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)