From 2f61125f6f20badac51d42d0e1b53031b27fbdd9 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 11 Oct 2020 00:07:11 +0200 Subject: [PATCH] Fix parameter map computation in ipa-modref * ipa-modref.c (modref_transform): Fix parameter map computation. --- gcc/ipa-modref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2