Skip to content

DefUseChain can output the same reference multiple times with nested loops #3328

@LonelyCat124

Description

@LonelyCat124

There is a bug in DefUseChains with nested loops where the same loop can occur multiple times.

Helpfully the comment in the code says:

                        # We will only ever reach a reference once, so
                        # we don't need to check uniqueness.

at line 367, which seems to be incorrect, so we just need a uniqueness check here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions