diff options
author | metagn <metagngn@gmail.com> | 2024-09-29 11:21:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-29 10:21:45 +0200 |
commit | 7974a2208c848440cc5188ee3f38f0432b2ee1db (patch) | |
tree | 08b48d70bad8b5a17583b9d91e90bf9ef7e34daa /icons | |
parent | 7cbe031909e90ae7896aee49382455f428a5c52a (diff) | |
download | Nim-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