Fix parameter map computation in ipa-modref

* ipa-modref.c (modref_transform): Fix parameter map computation.
This commit is contained in:
Jan Hubicka 2020-10-11 00:07:11 +02:00
parent e88b04bda8
commit 2f61125f6f
1 changed files with 1 additions and 1 deletions

View File

@ -1379,7 +1379,7 @@ modref_transform (struct cgraph_node *node)
{
int idx = node->clone.param_adjustments->get_original_index (i);
if (idx >= 0)
map[i] = idx;
map[idx] = i;
}
remap_arguments (&map, r->loads);
remap_arguments (&map, r->stores);