From 1f546bbbc4dcc9cf044310cf0eafb091415df614 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Fri, 25 Jan 2013 08:52:02 +0000 Subject: Fix PR56035. From-SVN: r195462 --- gcc/cfgloopmanip.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gcc/cfgloopmanip.c') diff --git a/gcc/cfgloopmanip.c b/gcc/cfgloopmanip.c index 8c6c39d..c72ceda 100644 --- a/gcc/cfgloopmanip.c +++ b/gcc/cfgloopmanip.c @@ -1823,10 +1823,8 @@ fix_loop_structure (bitmap changed_bbs) /* If there was no latch, schedule the loop for removal. */ if (!first_latch) loop->header = NULL; - /* If there was a single latch and it belongs to the loop of the - header, record it. */ - else if (latch - && latch->src->loop_father == loop) + /* If there was a single latch, record it. */ + else if (latch) loop->latch = latch->src; /* Otherwise there are multiple latches which are eventually disambiguated below. */ -- cgit v1.1