Skip to content

Implement something like copy & move analysis #579

Closed
@marijnh

Description

@marijnh

Some pass should check whether code doesn't move from locations that should never be moved from (data structure fields can be swapped, if mutable, but never moved out, I think). The same pass can probably verify that no non-copyable values (currently only ty_res) are being copied.

I think that var x = rec(...) (moving from a temporary) should be valid. It doesn't really work at the moment.

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