i965/cfg: Assert that cur_do/while/if pointers are non-NULL.
authorMatt Turner <mattst88@gmail.com>
Mon, 22 Jun 2015 18:09:49 +0000 (11:09 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 23 Jun 2015 19:24:42 +0000 (12:24 -0700)
commit4d93a07c45c8aa4cb3adbfcb9d61dcb54d8c404f
treee0d454074841ec2446c7443f9d1d274703dbac41
parent04758d25b4240129d4fa8784608a54c40bff3568
i965/cfg: Assert that cur_do/while/if pointers are non-NULL.

Coverity sees that the functions immediately below the new assertions
dereference these pointers, but is unaware that an ENDIF always follows
an IF, etc.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_cfg.cpp