summaryrefslogtreecommitdiff
path: root/vm_backtrace.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-11 11:19:52 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-11 11:19:52 (GMT)
commit6278420729d063c82eaca5478e42fb807fc76471 (patch)
tree0545980838be0c14ed0ff4f64f2c77302d9a7d84 /vm_backtrace.c
parentf0226f0a3c836e9262c5cd2671860140878d6b75 (diff)
* vm_backtrace.c (frame2klass): filter only for imemo_ment.
T_IMEMO/imemo_iseq can be passed here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_backtrace.c')
-rw-r--r--vm_backtrace.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/vm_backtrace.c b/vm_backtrace.c
index bef61d8..31ca10f 100644
--- a/vm_backtrace.c
+++ b/vm_backtrace.c
@@ -1344,12 +1344,12 @@ frame2klass(VALUE frame)
if (RB_TYPE_P(frame, T_IMEMO)) {
const rb_callable_method_entry_t *cme = (rb_callable_method_entry_t *)frame;
- VM_ASSERT(imemo_type(frame) == imemo_ment);
- return cme->defined_class;
- }
- else {
- return Qnil;
+
+ if (imemo_type(frame) == imemo_ment) {
+ return cme->defined_class;
+ }
}
+ return Qnil;
}
VALUE