9 Feb
2023
9 Feb
'23
10:01 a.m.
Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/hlsl.c:
+ +static struct hlsl_ir_node *map_instr(const struct clone_instr_map *map, struct hlsl_ir_node *src) +{ + size_t i; + + if (!src) + return NULL; + + for (i = 0; i < map->count; ++i) + { + if (map->instrs[i].src == src) + return map->instrs[i].dst; + } + /* The block passed to hlsl_clone_block() should have been free of external + * references. */ + assert(0); `vkd3d_unreachable()`
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/85#note_23591