summaryrefslogtreecommitdiff
path: root/gcc/loop-invariant.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-10 09:08:38 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-10 09:08:38 +0000
commit8a32b3e06edbd91fa0212c76c345293617ce9a2e (patch)
tree9f787b11d4a9affc182351836a1457d146ff4a70 /gcc/loop-invariant.c
parent0323e8a1f39ee170f6f2b069231dc5287a0b8657 (diff)
downloadgcc-8a32b3e06edbd91fa0212c76c345293617ce9a2e.tar.gz
2009-11-10 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 154058 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@154060 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-invariant.c')
-rw-r--r--gcc/loop-invariant.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/loop-invariant.c b/gcc/loop-invariant.c
index 37f88f2fcbd..baf249ba3a2 100644
--- a/gcc/loop-invariant.c
+++ b/gcc/loop-invariant.c
@@ -1564,6 +1564,8 @@ static void
free_loop_data (struct loop *loop)
{
struct loop_data *data = LOOP_DATA (loop);
+ if (!data)
+ return;
bitmap_clear (&LOOP_DATA (loop)->regs_ref);
bitmap_clear (&LOOP_DATA (loop)->regs_live);