aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2018-07-20 19:54:56 +0200
committerBas Nieuwenhuizen <[email protected]>2018-07-20 22:27:39 +0200
commite1febbefe84374cb18f724bb289382a8aa6a3539 (patch)
treeb2b3f8204521e8d53e6439f891977dc92ead94d2 /src
parentd24c35c3fb5c49e3256547a46183b280541e6fea (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/compiler/nir/nir_opt_if.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_opt_if.c b/src/compiler/nir/nir_opt_if.c
index 49ba5de09e9..b3d0bf1decb 100644
--- a/src/compiler/nir/nir_opt_if.c
+++ b/src/compiler/nir/nir_opt_if.c
@@ -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!");
}
/**