summaryrefslogtreecommitdiff
path: root/vm_backtrace.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-14 03:33:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-14 03:33:00 +0000
commit2df3e8de58db7b1df5937f6faf641f354a507f7c (patch)
tree6a724367e6a51266e03a6093996542a981b0fbba /vm_backtrace.c
parent523ecd29b8acef4faa47331aaf1c6bf128b29ad6 (diff)
downloadruby-2df3e8de58db7b1df5937f6faf641f354a507f7c.tar.gz
vm_backtrace.c: use rb_id2str
* vm_backtrace.c (location_base_label): convert ID to string directly, and the return value is frozen. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_backtrace.c')
-rw-r--r--vm_backtrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_backtrace.c b/vm_backtrace.c
index 7ea0b3ba5e..b259ceb52a 100644
--- a/vm_backtrace.c
+++ b/vm_backtrace.c
@@ -208,7 +208,7 @@ location_base_label(rb_backtrace_location_t *loc)
case LOCATION_TYPE_ISEQ_CALCED:
return loc->body.iseq.iseq->location.base_label;
case LOCATION_TYPE_CFUNC:
- return rb_sym_to_s(ID2SYM(loc->body.cfunc.mid));
+ return rb_id2str(loc->body.cfunc.mid);
case LOCATION_TYPE_IFUNC:
default:
rb_bug("location_base_label: unreachable");