nir/spirv/cfg: Handle unreachable instructions
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 11 Jan 2016 23:35:15 +0000 (15:35 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 11 Jan 2016 23:35:15 +0000 (15:35 -0800)
src/glsl/nir/spirv/vtn_cfg.c

index db1163d0707f6a7fe71b33d5343ed6a68c5cb3fd..bc71e8afa7cb2b85480f02310f52434cd7c478ab 100644 (file)
@@ -426,6 +426,8 @@ vtn_cfg_walk_blocks(struct vtn_builder *b, struct list_head *cf_list,
       }
 
       case SpvOpUnreachable:
+         return;
+
       default:
          unreachable("Unhandled opcode");
       }