rt: Add an assert to rust_get_current_task

This commit is contained in:
Brian Anderson 2012-04-02 14:23:24 -07:00
parent fa88d15d63
commit dd63c5ef1d

View File

@ -463,6 +463,7 @@ inline rust_task* rust_get_current_task() {
// Make sure we've calculated the right address
::check_stack_canary(stk);
assert(stk->task != NULL && "task pointer not in stack structure");
return stk->task;
}