Skip to content

Commit d4a6f60

Browse files
committed
Fix canonical path parent resolution
The algorithm was comparing using the wrong id, this lead to some mangling errors as an erroneous parent was selected. gcc/rust/ChangeLog: * resolve/rust-forever-stack.hxx: Fix the id comparison. Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
1 parent 2c744b1 commit d4a6f60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/rust/resolve/rust-forever-stack.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ ForeverStack<N>::to_canonical_path (NodeId id) const
686686
auto &link = kv.first;
687687
auto &child = kv.second;
688688

689-
if (link.id == child.id)
689+
if (current.id == child.id)
690690
{
691691
outer_link = &link;
692692
break;

0 commit comments

Comments
 (0)