# stage2: fix generic function cleanup · gitcafe/zig

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

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

Visibility: public

Requested revision: af19909b9cde3d009f0306ac825f39912644bca6

Requested commit: af19909b9cde3d009f0306ac825f39912644bca6

Commit: af19909b9cde3d009f0306ac825f39912644bca6

Tree: 0e6f1510b96f963375cfd60e236c2959a31d8a81

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix generic function cleanup

When removing generic function instantiations from monomorphed_funcs, we
need to first make sure the function is generic, otherwise the hash map
tries to access the `hash` field of the function which is undefined.

closes #12614

```

## Parents

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

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