tree-streamer.c (streamer_tree_cache_insert_1): Update the index associated with...
[gcc.git] / gcc / tree-streamer.c
index f29690f62b9b3ffdad6037e681f2d3d0ecd5edf0..e4d948b4cca95641ef251a36f3b9436f7e7f3b15 100644 (file)
@@ -152,6 +152,7 @@ streamer_tree_cache_insert_1 (struct streamer_tree_cache_d *cache,
             the requested location slot.  */
          ix = *ix_p;
          streamer_tree_cache_add_to_node_array (cache, ix, t);
+         *slot = (void *)(size_t) (ix + 1);
        }
 
       /* Indicate that T was already in the cache.  */