# llvm: avoid creating an invalid llvm type · gitcafe/zig

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

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

Visibility: public

Requested revision: 18f05664dcf9c3a307d269dda4f146bafbca19e9

Requested commit: 18f05664dcf9c3a307d269dda4f146bafbca19e9

Commit: 18f05664dcf9c3a307d269dda4f146bafbca19e9

Tree: 40ca1cd54bf9a3a4be38496bb9d52355366d03eb

Author: Jacob Young

Committer: Jacob Young

## Message

````
llvm: avoid creating an invalid llvm type

Fixes the following assertion:

```
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.
```

````

## Parents

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

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