summaryrefslogtreecommitdiff
path: root/libcr/coroutine.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-06 19:46:16 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-06 19:46:16 -0600
commitff792542642cf1aee8da6069f45a7322af7c8a74 (patch)
tree9d4eb75b740c7ed6f088339d8595ac11970db12f /libcr/coroutine.c
parenteabe7380e11468fbe8fa5b7bafdb4ce5b8a448ee (diff)
s/assert(false)/__builtin_unreachable()/
Diffstat (limited to 'libcr/coroutine.c')
-rw-r--r--libcr/coroutine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcr/coroutine.c b/libcr/coroutine.c
index 176590a..1891b61 100644
--- a/libcr/coroutine.c
+++ b/libcr/coroutine.c
@@ -464,7 +464,7 @@ cid_t coroutine_add_with_stack_size(size_t stack_size, cr_fn_t fn, void *args) {
debugf("...stack_base=%p\n", stack_base);
/* run until cr_begin() */
cr_plat_call_with_stack(stack_base, fn, args);
- assert(false); /* should cr_begin() instead of returning */
+ __builtin_unreachable(); /* should cr_begin() instead of returning */
}
assert_cid_state(child, state == CR_RUNNABLE);
if (parent)