Module: Mesa Branch: staging/18.1 Commit: 9a532b118376d6e9d1569576a842528f85ffd5d6 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9a532b118376d6e9d1569576a842528f85ffd5d6
Author: Bas Nieuwenhuizen <[email protected]> Date: Fri Jul 20 19:54:56 2018 +0200 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 <[email protected]> Fixes: 8cacf38f527 "nir: Do not use continue block after removing it." CC: 18.1 <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107312 (cherry picked from commit e1febbefe84374cb18f724bb289382a8aa6a3539) --- src/compiler/nir/nir_opt_if.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/nir/nir_opt_if.c b/src/compiler/nir/nir_opt_if.c index dea5c1db06..ac5ed136c3 100644 --- a/src/compiler/nir/nir_opt_if.c +++ b/src/compiler/nir/nir_opt_if.c @@ -42,6 +42,8 @@ find_continue_block(nir_loop *loop) if (pred_entry->key != prev_block) return (nir_block*)pred_entry->key; } + + unreachable("Continue block not found!"); } /** _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
