diff options
Diffstat (limited to 'gcc/cfgloop.c')
-rw-r--r-- | gcc/cfgloop.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c index 62ee79c6cd1..12ce92cdd9e 100644 --- a/gcc/cfgloop.c +++ b/gcc/cfgloop.c @@ -1038,6 +1038,9 @@ record_loop_exits (void) edge_iterator ei; edge e; + if (!current_loops) + return; + if (current_loops->state & LOOPS_HAVE_RECORDED_EXITS) return; current_loops->state |= LOOPS_HAVE_RECORDED_EXITS; |