Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
[gcc.git] / gcc / lto-streamer-out.c
index b59bc8fe5d99fc85f36c213747e8928c5565f3a5..8fe7bd8082a1e74ca2bdfa29c8b098ca7e465052 100644 (file)
@@ -1922,9 +1922,9 @@ copy_function (struct cgraph_node *node)
         So just copy the vector.  All the encoders in the in state
         must be empty where we reach here. */
       gcc_assert (lto_tree_ref_encoder_size (encoder) == 0);
+      encoder->trees.reserve_exact (n);
       for (j = 0; j < n; j++)
        encoder->trees.safe_push (trees[j]);
-      encoder->next_index = n;
     }
 
   lto_free_section_data (file_data, LTO_section_function_body, name,