aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto/lto.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-12-11 15:52:57 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-12-11 15:52:57 +0000
commite7d00517fafe1217d98ed39e4923e45464f92da0 (patch)
treee9f5148c264f2186b50920dbe27430587f7261ba /gcc/lto/lto.c
parent90f5494c89d9242643cde13cbd0d477338440731 (diff)
downloadgcc-e7d00517fafe1217d98ed39e4923e45464f92da0.zip
gcc-e7d00517fafe1217d98ed39e4923e45464f92da0.tar.gz
gcc-e7d00517fafe1217d98ed39e4923e45464f92da0.tar.bz2
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
Diffstat (limited to 'gcc/lto/lto.c')
-rw-r--r--gcc/lto/lto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index 4d7c307..c7ac7c3 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -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);
}