glsl: Don't return NULL IR for erroneous bit-shift operators.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 18 Oct 2010 07:24:46 +0000 (00:24 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 18 Oct 2010 07:26:14 +0000 (00:26 -0700)
commitb8276e46f593fd9d938258636a2ba4452d895338
treeffb5ac61a0f50de2d3b5980eeedeaa58f17393dd
parent8a74f7422bedb419f3527bb1ccd60e1e9220502c
glsl: Don't return NULL IR for erroneous bit-shift operators.

Existing code relies on IR being generated (possibly with error type)
rather than returning NULL.  So, don't break - go ahead and generate the
operation.  As long as an error is flagged, things will work out.

Fixes fd.o bug #30914.
src/glsl/ast_to_hir.cpp