summary refs log tree commit diff stats
path: root/icons
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2024-09-29 11:21:45 +0300
committerGitHub <noreply@github.com>2024-09-29 10:21:45 +0200
commit7974a2208c848440cc5188ee3f38f0432b2ee1db (patch)
tree08b48d70bad8b5a17583b9d91e90bf9ef7e34daa /icons
parent7cbe031909e90ae7896aee49382455f428a5c52a (diff)
downloadNim-7974a2208c848440cc5188ee3f38f0432b2ee1db.tar.gz
fix cyclic node flag getting added to sink call [backport:2.0] (#24194)
Sorry I don't have a test case or issue for this. `injectdestructors` is
supposed to add a final bool argument to `=copy` and `=dup` to mark
cyclic types, as generated by `liftdestructors`. Hence this flag is
added after every call to `genCopy`, but `genCopy` can generate a
`=sink` call when passed the flag `IsExplicitSink` by `nkSinkAsgn`. This
creates a codegen error, saying the sink received an extra argument.
This is fixed by not adding the argument on the flag `IsExplicitSink`.

This is a followup to #20585 which is on the 2.0 branch, hence this is
marked backport.
Diffstat (limited to 'icons')
0 files changed, 0 insertions, 0 deletions