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 <jason@jlekstrand.net>
Fixes: 8cacf38f52 "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
This commit is contained in:
Bas Nieuwenhuizen 2018-07-20 19:54:56 +02:00
parent d24c35c3fb
commit e1febbefe8

View file

@ -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!");
}
/**