diff options
author | Richard Biener <rguenther@suse.de> | 2023-03-15 08:43:06 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-04-19 14:14:14 +0200 |
commit | 8366e6764e18ca6526d9be87f5bb54ae8339d7f7 (patch) | |
tree | 91d0504511d79a702ec180241740012e0bd4c282 /gcc | |
parent | 9d218c45e318dcec04312f1d4a14c6ff904404e1 (diff) | |
download | gcc-8366e6764e18ca6526d9be87f5bb54ae8339d7f7.zip gcc-8366e6764e18ca6526d9be87f5bb54ae8339d7f7.tar.gz gcc-8366e6764e18ca6526d9be87f5bb54ae8339d7f7.tar.bz2 |
Fix do_sd_constraint escape special casing
The following fixes the escape special casing to test the proper
variable IDs.
* tree-ssa-structalias.cc (do_sd_constraint): Fixup escape
special casing.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/tree-ssa-structalias.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-structalias.cc b/gcc/tree-ssa-structalias.cc index 89027ab..4f350bf 100644 --- a/gcc/tree-ssa-structalias.cc +++ b/gcc/tree-ssa-structalias.cc @@ -1706,7 +1706,7 @@ do_sd_constraint (constraint_graph_t graph, constraint_t c, flag |= bitmap_ior_into (sol, get_varinfo (t)->solution); /* Merging the solution from ESCAPED needlessly increases the set. Use ESCAPED as representative instead. */ - else if (v->id == escaped_id) + else if (t == find (escaped_id)) flag |= bitmap_set_bit (sol, escaped_id); else if (v->may_have_pointers && add_graph_edge (graph, lhs, t)) |