diff options
author | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-05-28 09:16:00 +0000 |
---|---|---|
committer | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-05-28 09:16:00 +0000 |
commit | 751c7db87e5b5012566a73cfbfdf85cc55928c98 (patch) | |
tree | 7f09e195ecac1319fce72654c18fb5c78ca15315 /gcc/dominance.c | |
parent | e53187927ba5310336b8a85242704068491ec826 (diff) | |
download | gcc-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.c | 1 |
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); |