Skip to content

Commit

Permalink
RB_GC_GUARD (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
yui-knk committed Apr 30, 2024
1 parent 0624b40 commit ca67d30
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions iseq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1201,14 +1201,9 @@ rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE realpath, VALUE line, V
{
rb_iseq_t *iseq = NULL;
rb_compile_option_t option;
#if !defined(__GNUC__) || (__GNUC__ == 4 && __GNUC_MINOR__ == 8)
# define INITIALIZED volatile /* suppress warnings by gcc 4.8 */
#else
# define INITIALIZED /* volatile */
#endif
VALUE (*parse)(VALUE vparser, VALUE fname, VALUE file, int start);
int ln;
VALUE INITIALIZED vast;
VALUE vast;
rb_ast_t *ast;
VALUE name = rb_fstring_lit("<compiled>");

Expand Down Expand Up @@ -1246,6 +1241,7 @@ rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE realpath, VALUE line, V
rb_ast_dispose(ast);
}

RB_GC_GUARD(vast);
return iseq;
}

Expand Down

0 comments on commit ca67d30

Please sign in to comment.