Module: Mesa Branch: master Commit: 9115fa1d132b3ed38180f05c303f9190cde23878 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9115fa1d132b3ed38180f05c303f9190cde23878
Author: Matt Turner <[email protected]> Date: Wed Oct 28 21:11:46 2015 -0700 i965/cfg: Handle no-idom case in cfg_t::dump_domtree(). Reviewed-by: Kenneth Graunke <[email protected]> --- src/mesa/drivers/dri/i965/brw_cfg.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_cfg.cpp b/src/mesa/drivers/dri/i965/brw_cfg.cpp index 10bcd4b..5d46615 100644 --- a/src/mesa/drivers/dri/i965/brw_cfg.cpp +++ b/src/mesa/drivers/dri/i965/brw_cfg.cpp @@ -528,7 +528,9 @@ cfg_t::dump_domtree() { printf("digraph DominanceTree {\n"); foreach_block(block, this) { - printf("\t%d -> %d\n", block->idom->num, block->num); + if (block->idom) { + printf("\t%d -> %d\n", block->idom->num, block->num); + } } printf("}\n"); } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
