st_glsl_to_tgsi: don't read potentially uninitialized buffer variable
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 13 May 2016 06:56:44 +0000 (01:56 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 15 Jun 2016 07:27:40 +0000 (09:27 +0200)
commit494e4b8976a48e37e3cb51338ad69e085ea5061a
tree58a2f034ddfa87d0d0250bd960b508d0e4200060
parent6510e0734563ff8d30e45b8781153367db15cc5b
st_glsl_to_tgsi: don't read potentially uninitialized buffer variable

Found by -fsanitize=undefined. Note that this should be a harmless issue in
practice because the inst->op check always dominates anyway.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp