aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgloopmanip.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2013-01-25 08:52:02 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2013-01-25 08:52:02 +0000
commit1f546bbbc4dcc9cf044310cf0eafb091415df614 (patch)
tree958b020f880808704534e14fe9664b145f65b415 /gcc/cfgloopmanip.c
parentaaf1e810c27ccddb9f20c0489f135b62eba8a28c (diff)
downloadgcc-1f546bbbc4dcc9cf044310cf0eafb091415df614.zip
gcc-1f546bbbc4dcc9cf044310cf0eafb091415df614.tar.gz
gcc-1f546bbbc4dcc9cf044310cf0eafb091415df614.tar.bz2
Fix PR56035.
From-SVN: r195462
Diffstat (limited to 'gcc/cfgloopmanip.c')
-rw-r--r--gcc/cfgloopmanip.c6
1 files changed, 2 insertions, 4 deletions
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. */