gallivm: Silence a warning at -Og

../src/gallium/auxiliary/gallivm/lp_bld_arit.c: In function ‘lp_build_round_arch’:
   ../src/gallium/auxiliary/gallivm/lp_bld_arit.c:2042:7: warning: ‘intrinsic_root’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    2042 |       lp_format_intrinsic(intrinsic, sizeof intrinsic, intrinsic_root, bld->vec_type);

Can't happen, mark it unreachable.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8724>
This commit is contained in:
Adam Jackson
2021-01-26 14:14:02 -05:00
committed by Marge Bot
parent 36ea1758fd
commit 10bcf25766
@@ -2037,6 +2037,8 @@ lp_build_round_arch(struct lp_build_context *bld,
case LP_BUILD_ROUND_TRUNCATE:
intrinsic_root = "llvm.trunc";
break;
default:
unreachable("unhandled lp_build_round_mode");
}
lp_format_intrinsic(intrinsic, sizeof intrinsic, intrinsic_root, bld->vec_type);