diff mbox

Fix segfault on verify_dominators error path

Message ID 20160528004149.GM3300@bubble.grove.modra.org
State New
Headers show

Commit Message

Alan Modra May 28, 2016, 12:41 a.m. UTC
Committed as obvious.  If the next check also fails, an attempt is
made to print imm_bb->index.

	* dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
diff mbox

Patch

Index: gcc/dominance.c
===================================================================
--- gcc/dominance.c	(revision 236843)
+++ gcc/dominance.c	(working copy)
@@ -1024,6 +1024,7 @@ 
 	{
 	  error ("dominator of %d status unknown", bb->index);
 	  err = true;
+	  continue;
 	}
 
       basic_block imm_bb_correct = di.get_idom (bb);