mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 04:30:10 +01:00
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:
parent
d24c35c3fb
commit
e1febbefe8
1 changed files with 2 additions and 0 deletions
|
|
@ -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!");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue