Fix a pasto in ao_compare::compare_ao_refs
When reading the function ao_compare::compare_ao_refs I came accross what I believe to ba a copy-and-paste error which this patch fixes. gcc/ChangeLog: 2025-03-10 Martin Jambor <mjambor@suse.cz> * tree-ssa-alias.cc (ao_compare::compare_ao_refs): Fix a copy-and-paste error.
This commit is contained in:
parent
09c2a0ab94
commit
dc47161c1f
1 changed files with 2 additions and 1 deletions
|
@ -4355,12 +4355,13 @@ ao_compare::compare_ao_refs (ao_ref *ref1, ao_ref *ref2,
|
||||||
c1 = p1, nskipped1 = i;
|
c1 = p1, nskipped1 = i;
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
i = 0;
|
||||||
for (tree p2 = ref2->ref; handled_component_p (p2); p2 = TREE_OPERAND (p2, 0))
|
for (tree p2 = ref2->ref; handled_component_p (p2); p2 = TREE_OPERAND (p2, 0))
|
||||||
{
|
{
|
||||||
if (component_ref_to_zero_sized_trailing_array_p (p2))
|
if (component_ref_to_zero_sized_trailing_array_p (p2))
|
||||||
end_struct_ref2 = p2;
|
end_struct_ref2 = p2;
|
||||||
if (ends_tbaa_access_path_p (p2))
|
if (ends_tbaa_access_path_p (p2))
|
||||||
c2 = p2, nskipped1 = i;
|
c2 = p2, nskipped2 = i;
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue