From: Jan Hubicka Date: Sat, 10 Oct 2020 22:07:11 +0000 (+0200) Subject: Fix parameter map computation in ipa-modref X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f61125f6f20badac51d42d0e1b53031b27fbdd9;p=gcc.git Fix parameter map computation in ipa-modref * ipa-modref.c (modref_transform): Fix parameter map computation. --- diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c index 0fbb943e57c..dd59e804c0f 100644 --- a/gcc/ipa-modref.c +++ b/gcc/ipa-modref.c @@ -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);