# stage2: slice and alignment fixes · gitcafe/zig

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

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

Visibility: public

Requested revision: 01c1f415209f5085e09430cc6df182d7eb2245ee

Requested commit: 01c1f415209f5085e09430cc6df182d7eb2245ee

Commit: 01c1f415209f5085e09430cc6df182d7eb2245ee

Tree: 9f93de2769afd58bf1a88db0b9b266aa24bb4b66

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: slice and alignment fixes

 * Fix backend using wrong union field of the slice instruction.
 * LLVM backend properly sets alignment on global variables.
 * Sema: add coercion for *T to *[1]T
 * Sema: pointers to Decls with explicit alignment now have alignment
   metadata in them.

```

## Parents

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

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