# Sema: only do store_ptr tuple optimization for arrays · gitcafe/zig

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

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

Visibility: public

Requested revision: 9a6fa67cbc7e5771f3770c0cb7d6d2c6bafb6957

Requested commit: 9a6fa67cbc7e5771f3770c0cb7d6d2c6bafb6957

Commit: 9a6fa67cbc7e5771f3770c0cb7d6d2c6bafb6957

Tree: 4ee6f2f8ebf858321d970b2da9e7191475827c6e

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: only do store_ptr tuple optimization for arrays

Check the big comment in the diff for more details.
Fixes default-initialization of structs from empty struct literals.

```

## Parents

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

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