summaryrefslogtreecommitdiff
path: root/gcc/cfgloopmanip.c
diff options
context:
space:
mode:
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-25 08:52:02 +0000
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-25 08:52:02 +0000
commit8e3bada190db4d07b98f40a2574781872c9f7f68 (patch)
tree958b020f880808704534e14fe9664b145f65b415 /gcc/cfgloopmanip.c
parent96e241e8c32d14971b7ffb6759dea17fc1de5c07 (diff)
downloadgcc-8e3bada190db4d07b98f40a2574781872c9f7f68.tar.gz
Fix PR56035.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195462 138bc75d-0d04-0410-961f-82ee72b054a4
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 8c6c39de86b..c72cedaf74e 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. */