aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gc.c b/gc.c
index a978887ae9..1b0f13efbb 100644
--- a/gc.c
+++ b/gc.c
@@ -11421,12 +11421,7 @@ obj_info(VALUE obj)
MJIT_FUNC_EXPORTED const char *
rb_obj_info(VALUE obj)
{
- if (!rb_special_const_p(obj)) {
- return obj_info(obj);
- }
- else {
- return obj_type_name(obj);
- }
+ return obj_info(obj);
}
void