Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[runtime] Prevent assert failure in `iree_hal_deferred_work_queue_act…
…ion_list_fail_locked`. (iree-org#18836) While debugging a different error, I noticed that in some situations `iree_hal_deferred_work_queue_action_list_fail_locked` would get an assert failure caused by trying to call `iree_hal_deferred_work_queue_action_list_pop_front` on an empty list. It seems to me like this logic was written under the assumption that `iree_hal_deferred_work_queue_action_list_pop_front` would return null for an empty list, but it does not. This PR changes the loop to check that the list is non-empty. Signed-off-by: James Bartlett <[email protected]>
- Loading branch information