aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
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)