aboutsummaryrefslogtreecommitdiffstats
path: root/cont.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-10 06:26:52 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-10 06:26:52 +0000
commitc323bbb262a5ceb37944b39bde42ce647d7a13b5 (patch)
tree3e6623d65b6f7c98035523a9a18d7eae8284e045 /cont.c
parent2eda133d50ec584882671aaa1364861c4e47b335 (diff)
downloadruby-c323bbb262a5ceb37944b39bde42ce647d7a13b5.tar.gz
use VM_UNREACHABLE() instead of rb_bug().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cont.c b/cont.c
index 5f5ce63e3a..4f9556c7dd 100644
--- a/cont.c
+++ b/cont.c
@@ -1360,7 +1360,7 @@ rb_fiber_start(void)
}
rb_fiber_terminate(fib);
- rb_bug("rb_fiber_start: unreachable");
+ VM_UNREACHABLE(rb_fiber_start);
}
static rb_fiber_t *
@@ -1478,14 +1478,14 @@ fiber_store(rb_fiber_t *next_fib, rb_thread_t *th)
if (fib->cont.argc == -1) rb_exc_raise(fib->cont.value);
if (next_fib->cont.value == Qundef) {
cont_restore_0(&next_fib->cont, &next_fib->cont.value);
- rb_bug("rb_fiber_resume: unreachable");
+ VM_UNREACHABLE(fiber_store);
}
return fib->cont.value;
}
else {
VALUE undef = Qundef;
cont_restore_0(&next_fib->cont, &undef);
- rb_bug("rb_fiber_resume: unreachable");
+ VM_UNREACHABLE(fiber_store);
}
#endif /* FIBER_USE_NATIVE */
}