# Sema: fix segfault during resolveInferredErrorSet · gitcafe/zig

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

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

Visibility: public

Requested revision: b6133931d04afc6980dfff2e87dadc85922d5335

Requested commit: b6133931d04afc6980dfff2e87dadc85922d5335

Commit: b6133931d04afc6980dfff2e87dadc85922d5335

Tree: 139869f6dee5fc8c4725c78ddc4780e56c46f059

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: fix segfault during resolveInferredErrorSet

There was a simple missing check of adding an inferred error set to
itself, in which case we should not try to mutate the hash map while
iterating over it.

```

## Parents

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

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