re PR lto/42037 ("grow domain error" in lto1)

2009-12-11  Richard Guenther  <rguenther@suse.de>

	PR lto/42037
	* lto.c (lto_resolution_read): Properly grow the vector.

From-SVN: r155166
This commit is contained in:
Richard Guenther 2009-12-11 15:52:57 +00:00 committed by Richard Biener
parent 90f5494c89
commit e7d00517fa
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-12-11 Richard Guenther <rguenther@suse.de>
PR lto/42037
* lto.c (lto_resolution_read): Properly grow the vector.
2009-12-11 Richard Guenther <rguenther@suse.de>
PR lto/41915

View File

@ -344,7 +344,7 @@ lto_resolution_read (FILE *resolution, lto_file *file)
internal_error ("Invalid resolution in the resolution file.");
VEC_safe_grow_cleared (ld_plugin_symbol_resolution_t, heap, ret,
index + 1);
max_index + 1);
VEC_replace (ld_plugin_symbol_resolution_t, ret, index, r);
}