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.
This commit is contained in:
Richard Biener 2023-03-15 08:43:06 +01:00
parent 9d218c45e3
commit 8366e6764e

View file

@ -1706,7 +1706,7 @@ do_sd_constraint (constraint_graph_t graph, constraint_t c,
flag |= bitmap_ior_into (sol, get_varinfo (t)->solution); flag |= bitmap_ior_into (sol, get_varinfo (t)->solution);
/* Merging the solution from ESCAPED needlessly increases /* Merging the solution from ESCAPED needlessly increases
the set. Use ESCAPED as representative instead. */ 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); flag |= bitmap_set_bit (sol, escaped_id);
else if (v->may_have_pointers else if (v->may_have_pointers
&& add_graph_edge (graph, lhs, t)) && add_graph_edge (graph, lhs, t))