Skip to content

Duplicate traced loop body arguments when aliased#2900

Open
jumerckx wants to merge 5 commits into
mainfrom
jm/loop-var-aliasing
Open

Duplicate traced loop body arguments when aliased#2900
jumerckx wants to merge 5 commits into
mainfrom
jm/loop-var-aliasing

Conversation

@jumerckx
Copy link
Copy Markdown
Collaborator

@jumerckx jumerckx commented May 15, 2026

This fixes #2853 but I'm not sure it's the right approach (#2853 (comment))

Comment thread src/Ops.jl
Comment on lines +2333 to +2334
length(reassigned_args) == length(args) ||
return args # mismatch — be conservative and skip
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
length(reassigned_args) == length(args) ||
return args # mismatch — be conservative and skip
length(reassigned_args) == length(args) || return args # mismatch — be conservative and skip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The following arguments should be traced but were not:

1 participant