dri/nouveau: replace assert with unreachable
authorDylan Baker <dylan@pnwbakers.com>
Wed, 11 Dec 2019 00:03:55 +0000 (16:03 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 21 Apr 2020 18:09:03 +0000 (11:09 -0700)
commit289f02d1d5990e052e21eb250f6d40b47d6eb12f
tree9a25e77c00772e0ffe234c2fdcf8de481229e9fc
parentc3db0936ef3077b656d55208dd5ae10437ddc2f7
dri/nouveau: replace assert with unreachable

I don't know why removing imports.h suddenly makes clang realize that
this function can not return in a non-debug build, but it does.
Unreachable is better because it doesn't have this problem.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3024>
src/mesa/drivers/dri/nouveau/nouveau_texture.c