# x64\+aarch64: check for pointer to zero-bit type when lowering decl · gitcafe/zig

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

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

Visibility: public

Requested revision: e0f5627d4a9cb1b3a1361d70d40043c8c170b2af

Requested commit: e0f5627d4a9cb1b3a1361d70d40043c8c170b2af

Commit: e0f5627d4a9cb1b3a1361d70d40043c8c170b2af

Tree: c46515f91973faaf597ab9758743bd2190652a2e

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
x64+aarch64: check for pointer to zero-bit type when lowering decl

Unless the pointer is a pointer to a function, if the pointee type
has zero-bits, we need to return `MCValue.none` as the `Decl` has
not been lowered to memory, and therefore, any GOT reference will be
wrong.

```

## Parents

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

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