mesa/src
Kenneth Graunke 2cd652f810 glsl: Make ir_dereference_record constructor assert the variable exists.
Providing a NULL pointer to the ir_dereference_record() constructor
seems like a bad idea.  Currently, if provided NULL, it returns a
partially constructed value of error type.  However, none of the callers
are prepared to handle that scenario.

Code inspection shows that all callers do one of the following:
- Already NULL-check the argument prior to creating the dereference
- Already deference the argument (and thus would crash if it were NULL)
- Newly allocate the argument.

Thus, it should be safe to simply assert the value passed is not NULL.
This should also catch issues right away, rather than dying later.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-26 10:21:53 -07:00
..
egl Add Makefile.in to toplevel .gitignore 2012-03-20 11:50:50 -07:00
gallium st/vdpau: clear video surface at least once 2012-03-26 12:39:40 +02:00
gbm Add Makefile.in to toplevel .gitignore 2012-03-20 11:50:50 -07:00
getopt
glsl glsl: Make ir_dereference_record constructor assert the variable exists. 2012-03-26 10:21:53 -07:00
glu
glx glx/drisw: avoid segfaults when we fail to get visual 2012-03-24 13:05:19 +00:00
mapi mapi: Use -no-undefined libtool flag in src/mapi/shared-glapi/Makefile.am 2012-03-21 11:31:45 -07:00
mesa intel: fix TFP at 16-bpp 2012-03-25 17:15:52 +01:00
Makefile
SConscript