nir: use braces around subobject in initializer
authorTapani Pälli <tapani.palli@intel.com>
Tue, 23 Apr 2019 11:35:17 +0000 (14:35 +0300)
committerKristian H. Kristensen <hoegsberg@google.com>
Fri, 26 Apr 2019 19:01:22 +0000 (12:01 -0700)
commit7a7f182dac0b8f29f83a2eca02d29f10e8b23244
treedfdb0b752e87dea14a24b324a627f750271299e7
parenta7c70bb2a1cee01e11b4b32df8213ac653eb7959
nir: use braces around subobject in initializer

Used same syntax as elsewhere with Mesa sources, verified result
against MSVC with godbolt.org.

fixes following warning with clang:
   warning: suggest braces around initialization of subobject

v2: empty braces -> braces around subobject (Caio, Kristian)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/compiler/nir/nir_linking_helpers.c
src/compiler/nir/nir_lower_io_to_vector.c