From bb5882e6afb507fdbf48511103ad97c080ee5076 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 11 Jan 2016 15:35:15 -0800 Subject: [PATCH] nir/spirv/cfg: Handle unreachable instructions --- src/glsl/nir/spirv/vtn_cfg.c | 2 ++ 1 file changed, 2 insertions(+) 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"); } -- 2.30.2