Files
Nim/tests/arc
metagn a35614e539 make explicit copy and hook calls keep their symbol (#25731)
fixes #25730

As mentioned in the issue this results in less optimized output, it
always generates the explicitly called hook as a proc rather than an
inline assignment. But maybe this is a reasonable trade since it only
happens on explicit `=sink`/`=copy` calls.

Any way to optimize it requires detecting either the type or the found
hook as a trivial assignment. I am not sure how to do these, the hook
isn't like destructors that propagate empty statements in
`liftdestructors` (which is what `isTrivial` checks for), it needs to
propagate simple assignments instead. And there is no logic for the
type, `tfHasAsgn` is misleading since it only checks if the destructor
is trivial, because there is no check for a trivial assignment.

Did not mark as backported but the only issue I can think of is the
performance issue above, otherwise it would be more correct if anything.
2026-04-12 07:05:48 +02:00
..
2020-07-07 22:43:36 +02:00
2020-07-07 22:43:36 +02:00
2020-07-07 22:43:36 +02:00
2020-11-12 09:28:32 +01:00
2021-03-04 19:33:16 +01:00
2023-07-06 15:15:50 +02:00
2021-10-29 19:55:48 +02:00
2022-10-02 06:44:10 +02:00
2020-11-26 10:24:52 +01:00
2020-10-19 22:25:43 +02:00
2023-06-30 14:54:46 +02:00
2020-03-09 15:32:38 +01:00
2022-10-17 23:48:51 +02:00
2020-04-22 17:34:35 +02:00
2020-09-11 01:50:42 +02:00
2021-07-27 09:36:19 +02:00
2020-09-24 15:41:45 +02:00
2026-02-23 13:39:55 +01:00
2020-07-04 07:37:24 +02:00
2021-07-27 14:32:56 +02:00