# Sema: skip aliasing check and runtime operation for \`@memcpy\` of zero-bit type · gitcafe/zig

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

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

Visibility: public

Requested revision: 149031204c0c804a66571a751b259da95886640d

Requested commit: 149031204c0c804a66571a751b259da95886640d

Commit: 149031204c0c804a66571a751b259da95886640d

Tree: 4c36c2b86776a5c0116e7212bc31dd1f4bfe3f78

Author: mlugg

Committer: mlugg

## Message

```
Sema: skip aliasing check and runtime operation for `@memcpy` of zero-bit type

This check isn't valid in such cases, because the source and destination
pointers both refer to zero bits of memory, meaning they effectively
never alias.

Resolves: #21655

```

## Parents

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

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