# update \`@memcpy\` to require equal src and dest lens · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/edb5e493e6d9a4478b3d9c06aa590694757d8c03)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: edb5e493e6d9a4478b3d9c06aa590694757d8c03

Requested commit: edb5e493e6d9a4478b3d9c06aa590694757d8c03

Commit: edb5e493e6d9a4478b3d9c06aa590694757d8c03

Tree: 5d5ccca94129e3a0e177845dbb5a9b251271cd07

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
update `@memcpy` to require equal src and dest lens

 * Sema: upgrade operands to array pointers if possible when emitting
   AIR.
 * Implement safety checks for length mismatch and aliasing.
 * AIR: make ptrtoint support slice operands. Implement in LLVM backend.
 * C backend: implement new `@memset` semantics. `@memcpy` is not done
   yet.

```

## Parents

- [a5c910adb610ae530db99f10aa77aaed3e85e830](https://git.cafe/gitcafe/zig/commit/a5c910adb610ae530db99f10aa77aaed3e85e830?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/edb5e493e6d9a4478b3d9c06aa590694757d8c03?format=markdown)
