Designated initializers require C++20, which is a bit easier said than
done to support well across meson versions. Let's avoid using them
for now instead.
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15706>
nir_foreach_block(block, b->impl) {
nir_foreach_instr(instr, block) {
struct contains_def_state state = {
- .def = def,
- .found = false,
+ def, false
};
nir_foreach_ssa_def(instr, contains_def_cb, &state);
if (state.found)