From: Jason Ekstrand Date: Mon, 11 Jan 2016 23:35:15 +0000 (-0800) Subject: nir/spirv/cfg: Handle unreachable instructions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb5882e6afb507fdbf48511103ad97c080ee5076;p=mesa.git nir/spirv/cfg: Handle unreachable instructions --- diff --git a/src/glsl/nir/spirv/vtn_cfg.c b/src/glsl/nir/spirv/vtn_cfg.c index db1163d0707..bc71e8afa7c 100644 --- a/src/glsl/nir/spirv/vtn_cfg.c +++ b/src/glsl/nir/spirv/vtn_cfg.c @@ -426,6 +426,8 @@ vtn_cfg_walk_blocks(struct vtn_builder *b, struct list_head *cf_list, } case SpvOpUnreachable: + return; + default: unreachable("Unhandled opcode"); }