summaryrefslogtreecommitdiff
path: root/gcc/lto-streamer-out.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/lto-streamer-out.c')
-rw-r--r--gcc/lto-streamer-out.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c
index 110cc3e580a..dfaf2806b74 100644
--- a/gcc/lto-streamer-out.c
+++ b/gcc/lto-streamer-out.c
@@ -664,12 +664,12 @@ output_cfg (struct output_block *ob, struct function *fn)
gcc_assert (cfun == fn);
/* Output the number of loops. */
- streamer_write_uhwi (ob, number_of_loops ());
+ streamer_write_uhwi (ob, number_of_loops (fn));
/* Output each loop, skipping the tree root which has number zero. */
- for (unsigned i = 1; i < number_of_loops (); ++i)
+ for (unsigned i = 1; i < number_of_loops (fn); ++i)
{
- struct loop *loop = get_loop (i);
+ struct loop *loop = get_loop (fn, i);
/* Write the index of the loop header. That's enough to rebuild
the loop tree on the reader side. Stream -1 for an unused