glsl: Initialize all fields of ir_variable in constructor
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Fri, 25 Oct 2019 16:33:08 +0000 (19:33 +0300)
committerDanylo Piliaiev <danylo.piliaiev@gmail.com>
Mon, 28 Oct 2019 12:49:15 +0000 (12:49 +0000)
commit8818e0df742120858b2460a2208fac57d242473a
tree498c01e0f1c4f13b8c203db6368e1bff70249207
parent1909bc526dd0e51d49252a1fc1c2aab0a8a51fb5
glsl: Initialize all fields of ir_variable in constructor

Better be safe, even if we could technically avoid this for
some fields.

Cc: <mesa-stable@lists.freedesktop.org>
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1999
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Tested-by: Witold Baryluk <witold.baryluk@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/compiler/glsl/ir.cpp