summaryrefslogtreecommitdiff
path: root/gcc/cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cfg.c')
-rw-r--r--gcc/cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfg.c b/gcc/cfg.c
index 2bcd790d306..6405f93f429 100644
--- a/gcc/cfg.c
+++ b/gcc/cfg.c
@@ -1180,7 +1180,7 @@ get_loop_copy (struct loop *loop)
key.index1 = loop->num;
entry = loop_copy.find (&key);
if (entry)
- return get_loop (entry->index2);
+ return get_loop (cfun, entry->index2);
else
return NULL;
}