mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-28 22:34:03 +08:00
Fix modref_transform ICE with more than 32 parameters.
* ipa-modref.c (modref_transform): Use reserve instead of safe_grow.
This commit is contained in:
parent
6a6c85f4e1
commit
5d2cedaaa3
@ -1367,7 +1367,7 @@ modref_transform (struct cgraph_node *node)
|
||||
|
||||
auto_vec <int, 32> map;
|
||||
|
||||
map.safe_grow (max + 1);
|
||||
map.reserve (max + 1);
|
||||
for (i = 0; i <= max; i++)
|
||||
map.quick_push (-1);
|
||||
FOR_EACH_VEC_SAFE_ELT (node->clone.param_adjustments->m_adj_params, i, p)
|
||||
|
Loading…
Reference in New Issue
Block a user