Commit e1febbef authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen

nir: Fix end of function without return warning/error.

There always is a continue block, so let us just do unreachable.
Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <jason@jlekstrand.net>
Fixes: 8cacf38f "nir: Do not use continue block after removing it."
CC: 18.1 <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107312
parent d24c35c3
......@@ -44,6 +44,8 @@ find_continue_block(nir_loop *loop)
if (pred_entry->key != prev_block)
return (nir_block*)pred_entry->key;
}
unreachable("Continue block not found!");
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment