From d9c16ed274d6390a46a7d2e4466315d9c70f23fb Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 9 Jun 2015 08:09:00 +0000 Subject: [PATCH] cfgloop.c (get_loop_body_in_bfs_order): Fix assert. 2015-06-09 Richard Biener * cfgloop.c (get_loop_body_in_bfs_order): Fix assert. From-SVN: r224268 --- gcc/ChangeLog | 4 ++++ gcc/cfgloop.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6550f7c9bf3..4af34951803 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-06-09 Richard Biener + + * cfgloop.c (get_loop_body_in_bfs_order): Fix assert. + 2015-06-09 Richard Biener PR middle-end/66413 diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c index 1a119effada..20b81b3841a 100644 --- a/gcc/cfgloop.c +++ b/gcc/cfgloop.c @@ -954,7 +954,7 @@ get_loop_body_in_bfs_order (const struct loop *loop) } } - gcc_assert (i >= vc); + gcc_assert (i > vc); bb = blocks[vc++]; } -- 2.30.2