tree-ssa-structalias.c (build_constraint_graph): Insert complex offsetted constraints into rhsvar, not lhsvar.

2006-12-21  Daniel Berlin  <dberlin@dberlin.org>

	* tree-ssa-structalias.c (build_constraint_graph): Insert complex
	offsetted constraints into rhsvar, not lhsvar.

From-SVN: r120114
This commit is contained in:
Daniel Berlin 2006-12-21 17:32:01 +00:00 committed by Daniel Berlin
parent 5dba0fb845
commit 225a58a770
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-12-21 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-structalias.c (build_constraint_graph): Insert complex
offsetted constraints into rhsvar, not lhsvar.
2006-12-21 Jakub Jelinek <jakub@redhat.com>
PR middle-end/30262

View File

@ -911,7 +911,7 @@ build_constraint_graph (void)
if (lhsvar != rhsvar || rhs.offset != 0 || lhs.offset != 0)
{
if (rhs.offset != 0 || lhs.offset != 0)
insert_into_complex (lhsvar, c);
insert_into_complex (rhsvar, c);
else
add_graph_edge (graph, lhs.var, rhs.var);
}