diff options
author | Matt Turner <[email protected]> | 2015-10-28 21:11:46 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-10-29 17:51:16 -0700 |
commit | 9115fa1d132b3ed38180f05c303f9190cde23878 (patch) | |
tree | b6dd68ff517d0640f8fc9b2920345f43d86be3d6 /src/mesa | |
parent | 5916b073f6b60b66e86a71b11cc3dc856d780144 (diff) |
i965/cfg: Handle no-idom case in cfg_t::dump_domtree().
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_cfg.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_cfg.cpp b/src/mesa/drivers/dri/i965/brw_cfg.cpp index 10bcd4bafd4..5d46615bc7b 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"); } |