ARB prog parser: Prevent NULL ptr deref for KIL instruction
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 30 Jul 2009 16:41:35 +0000 (09:41 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 30 Jul 2009 16:41:35 +0000 (09:41 -0700)
commit17534ab88ce29119f79de8abfcc4170471e8f5a4
tree8b146f525b89373b2e9c39e0917053f36c881dfa
parent600710907c5b72cf33e0b3ca6dc7e0d2a1a8ab25
ARB prog parser: Prevent NULL ptr deref for KIL instruction

The KIL instruction doesn't have a destination register, so
dereferencing dst in asm_instruction_ctor would cause a segfault.
src/mesa/shader/program_parse.tab.c
src/mesa/shader/program_parse.y