summaryrefslogtreecommitdiff
path: root/gcc/dominance.c
diff options
context:
space:
mode:
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2016-05-28 09:16:00 +0000
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2016-05-28 09:16:00 +0000
commit751c7db87e5b5012566a73cfbfdf85cc55928c98 (patch)
tree7f09e195ecac1319fce72654c18fb5c78ca15315 /gcc/dominance.c
parente53187927ba5310336b8a85242704068491ec826 (diff)
downloadgcc-751c7db87e5b5012566a73cfbfdf85cc55928c98.tar.gz
Fix segfault on verify_dominators error path
* dominance.c (verify_dominators): Don't segfault on NULL imm_bb. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236845 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dominance.c')
-rw-r--r--gcc/dominance.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/dominance.c b/gcc/dominance.c
index 073a6058f29..e3308cc1927 100644
--- a/gcc/dominance.c
+++ b/gcc/dominance.c
@@ -1024,6 +1024,7 @@ verify_dominators (cdi_direction dir)
{
error ("dominator of %d status unknown", bb->index);
err = true;
+ continue;
}
basic_block imm_bb_correct = di.get_idom (bb);