i965/cfg: Fix cfg_t::dump() when a block has no immediate dominator.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 5 Oct 2015 23:21:10 +0000 (16:21 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 10 Oct 2015 18:40:19 +0000 (11:40 -0700)
commita4e988f4814d80b27102c48020c4338a6d86c6da
tree75f2bb6c5738b1a255b4cf81c2c1a1f53fa828d7
parent2496cfd771cff250bce5c53ca9d79dbf64d7cbcf
i965/cfg: Fix cfg_t::dump() when a block has no immediate dominator.

Switch statements introduce a bogus loop with an unconditional break at
the end of the loop, just before the while...so the while is unreachable
and has no immediate dominator.

v2: With less exuberance

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_cfg.cpp