# stage2: implement intTagType logic · gitcafe/zig

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

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

Visibility: public

Requested revision: 4d88f825bc5eb14aa00446f046ab4714a4fdce70

Requested commit: 4d88f825bc5eb14aa00446f046ab4714a4fdce70

Commit: 4d88f825bc5eb14aa00446f046ab4714a4fdce70

Tree: 4729946dff1e6ae200426418f4f6653003468d4f

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: implement intTagType logic

This commit changes a lot of `*const Module` to `*Module` to make it
work, since accessing the integer tag type of an enum might need to
mutate the InternPool by adding a new integer type into it.

An alternate strategy would be to pre-heat the InternPool with the
integer tag type when creating an enum type, which would make it so that
intTagType could accept a const Module instead of a mutable one,
asserting that the InternPool already had the integer tag type.

```

## Parents

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

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