summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index fa8d84ffe3..5cca05e324 100644
--- a/parse.y
+++ b/parse.y
@@ -10669,6 +10669,7 @@ rb_gc_free_dsymbol(VALUE ptr)
VALUE
rb_str_dynamic_intern(VALUE s)
{
+#if USE_SYMBOL_GC
VALUE str = RB_GC_GUARD(s);
VALUE dup;
rb_encoding *enc;
@@ -10704,6 +10705,9 @@ rb_str_dynamic_intern(VALUE s)
}
return dsym;
+#else
+ return rb_str_intern(s);
+#endif
}
static int