# Revert "llvm: fix lowering pointer to final zero-width field of a comptime value" · gitcafe/zig

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

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

Visibility: public

Requested revision: 6ed0910d6d974750fe65990983d5347ceacc0186

Requested commit: 6ed0910d6d974750fe65990983d5347ceacc0186

Commit: 6ed0910d6d974750fe65990983d5347ceacc0186

Tree: 995cb7403d93934044c9135ff9b466a1c16e1b25

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

````
Revert "llvm: fix lowering pointer to final zero-width field of a comptime value"

This reverts commit e0bc5f65b98d154b4318027d56f780b55605e33c.

Caused an assertion failure when running the behavior tests:

```
zig: llvm/lib/IR/Type.cpp:729: static llvm::PointerType* llvm::PointerType::get(llvm::Type*, unsigned int): Assertion `isValidElementType(EltTy) && "Invalid type for pointer element!"' failed.
Aborted (core dumped)
```

````

## Parents

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

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