glsl: Explicitly NULL-check variables before making a dereference.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 13 Mar 2012 21:59:42 +0000 (14:59 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 26 Mar 2012 17:21:55 +0000 (10:21 -0700)
commitdca19a771156685895892740f687cee7cf84a8c9
tree37d0213ac4cd61b7ac49dfd35011517a7308e877
parent2cd652f810e3417ff458f23a8c72a0c84e342258
glsl: Explicitly NULL-check variables before making a dereference.

The constructor currently returns a ir_dereference_variable of error
type when provided NULL, but that's about to change in the next commit.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/ast_to_hir.cpp