Skip to content

Commit

Permalink
Merge pull request #5 from Shopify/release-mode
Browse files Browse the repository at this point in the history
cYjitCodeComment is only defined if we're not in debugging mode
  • Loading branch information
maximecb authored Apr 20, 2021
2 parents d1eade0 + a5590d8 commit 37a2ee8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions yjit_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,9 @@ rb_yjit_init(struct rb_yjit_options *options)
rb_define_alloc_func(cYjitDisasm, yjit_disasm_init);
rb_define_method(cYjitDisasm, "disasm", yjit_disasm, 2);
cYjitDisasmInsn = rb_struct_define_under(cYjitDisasm, "Insn", "address", "mnemonic", "op_str", NULL);
#if RUBY_DEBUG
cYjitCodeComment = rb_struct_define_under(cYjitDisasm, "Comment", "address", "comment");
#endif
#endif

if (RUBY_DEBUG && rb_yjit_opts.gen_stats) {
Expand Down

0 comments on commit 37a2ee8

Please sign in to comment.