i965: Fix invalid pointer read in dead_control_flow_eliminate().
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 30 Mar 2016 19:00:02 +0000 (12:00 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 4 Apr 2016 21:34:40 +0000 (14:34 -0700)
commitda5d08707bf07c76b6a1851f3a36bb7c1f8d4d4b
tree5aef844868cae28379d4e5f2f11ca5e4c6942098
parent9486614938035f6bec746d207a9cf79a7def0724
i965: Fix invalid pointer read in dead_control_flow_eliminate().

There may not be a previous block.  In this case, there's no real work
to do, so just continue on to the next one.

v2: Update for bblock->prev() API change.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_dead_control_flow.cpp