glsl: Fix segfault when lhs is error_type in TCS
authorTimothy Arceri <timothy.arceri@collabora.com>
Wed, 9 Mar 2016 05:58:29 +0000 (16:58 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 31 Mar 2016 01:49:42 +0000 (12:49 +1100)
commit7ebc3deaad77d11aa7086720ba4c3469a8878de3
treeb64e906653046fc2596697af57aba9d57c1bc826
parentc9367c13ca420528cd0d9a9e8dacd2fd5d6a0a41
glsl: Fix segfault when lhs is error_type in TCS

It seems expected that both lhs and rhs could be of type error_type
in this code however the TCS case wasn't expecting it.

Fixes segfault in an enhanced layouts GL CTS test.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/compiler/glsl/ast_to_hir.cpp