microsoft/compiler: s/assert()/unreachable()/ in emit_intrinsic()

Use an unreachable() statement instead of the incorrect assertion in the
unsupported intrinsic path.

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16926>
This commit is contained in:
Boris Brezillon 2022-04-22 14:56:17 +02:00 committed by Marge Bot
parent 82d3433d2a
commit 65309dab45

View file

@ -4302,7 +4302,7 @@ emit_intrinsic(struct ntd_context *ctx, nir_intrinsic_instr *intr)
case nir_intrinsic_load_workgroup_size:
default:
NIR_INSTR_UNSUPPORTED(&intr->instr);
assert("Unimplemented intrinsic instruction");
unreachable("Unimplemented intrinsic instruction");
return false;
}
}