Commit 08fb229e by Frank Ch. Eigler Committed by Frank Ch. Eigler

dominance.c (verify_dominators): Don't SEGV if recount_dominator returns NULL.

2004-09-22  Frank Ch. Eigler  <fche@redhat.com>

	* dominance.c (verify_dominators): Don't SEGV if recount_dominator
	returns NULL.

From-SVN: r87883
parent ecd16bf6
2004-09-22 Frank Ch. Eigler <fche@redhat.com>
* dominance.c (verify_dominators): Don't SEGV if recount_dominator
returns NULL.
2004-09-22 Kazu Hirata <kazu@cs.umass.edu> 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
* doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR, * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
......
...@@ -833,8 +833,12 @@ verify_dominators (enum cdi_direction dir) ...@@ -833,8 +833,12 @@ verify_dominators (enum cdi_direction dir)
dom_bb = recount_dominator (dir, bb); dom_bb = recount_dominator (dir, bb);
if (dom_bb != get_immediate_dominator (dir, bb)) if (dom_bb != get_immediate_dominator (dir, bb))
{ {
error ("dominator of %d should be %d, not %d", if (dom_bb == NULL)
bb->index, dom_bb->index, get_immediate_dominator(dir, bb)->index); error ("dominator of %d should be (unknown), not %d",
bb->index, get_immediate_dominator(dir, bb)->index);
else
error ("dominator of %d should be %d, not %d",
bb->index, dom_bb->index, get_immediate_dominator(dir, bb)->index);
err = 1; err = 1;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment