# fix assertion failure when some compile errors happen · gitcafe/zig

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

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

Visibility: public

Requested revision: 2257660916a8c92d953a5a71da6c2d4f7cc031e6

Requested commit: 2257660916a8c92d953a5a71da6c2d4f7cc031e6

Commit: 2257660916a8c92d953a5a71da6c2d4f7cc031e6

Tree: 251e9ac556ff808733cfbb8b8afedcb3ba68a710

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix assertion failure when some compile errors happen

I don't actually know of a test case to trigger this

self-hosted won't have this problem because get_pointer_to_type
will return error.SemanticAnalysisFailed

```

## Parents

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

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