summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/tgsi/tgsi_exec.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2021-05-03 21:19:38 -0700
committerMarge Bot <eric+marge@anholt.net>2021-05-05 23:55:17 +0000
commite500e6cd25fe63f040220c0abfdbad903a5f9f6f (patch)
tree4b3be66a43441666e3d60496da15ed001320d0fe /src/gallium/auxiliary/tgsi/tgsi_exec.c
parent367729a7321566cc61bbcc2d13405d20a881149d (diff)
tgsi_exec: Mark the store file default case as unreachable.
It isn't reached, and shouldn't be, and it's not like returning NULL (instead of the &null case for TGSI_FILE_NULL) will do anything good. Shaves another tiny bit of dead code off of release builds. Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10605>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_exec.c')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_exec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index 50a8efcc6b7..403140fc58a 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_exec.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c
@@ -1809,8 +1809,7 @@ store_dest_dstret(struct tgsi_exec_machine *mach,
break;
default:
- assert( 0 );
- return NULL;
+ unreachable("Bad destination file");
}
return dst;