glsl: Check that layout is non-null before dereferencing.
authorMatt Turner <mattst88@gmail.com>
Mon, 16 May 2016 21:49:38 +0000 (14:49 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 18 May 2016 18:09:37 +0000 (11:09 -0700)
commit6a4ff51f7a28124f27da52fe8d1a04025ddf7a83
tree5e890a20128723f496b273bc82416a16a31d41e1
parent53f64a84047b3f2766e490311c925a36afc64807
glsl: Check that layout is non-null before dereferencing.

layout should only be null for structs, but it's checked everywhere else
and confuses Coverity (CID 1358495).

Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/compiler/glsl/ast_to_hir.cpp