# Sema: inferred allocations no longer abuse type/value system · gitcafe/zig

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

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

Visibility: public

Requested revision: f37c0a459382fa033cefc9bb139277436a78b25e

Requested commit: f37c0a459382fa033cefc9bb139277436a78b25e

Commit: f37c0a459382fa033cefc9bb139277436a78b25e

Tree: 6860bcc6f0d95190cb68fb43fc7da6d593322b1c

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: inferred allocations no longer abuse type/value system

Previously, there were types and values for inferred allocations and a
lot of special-case handling. Now, instead, the special casing is
limited to AIR instructions for these use cases.

Instead of storing data in Value payloads, the data is now stored in AIR
instruction data as well as the previously `void` value type of the
`unresolved_inferred_allocs` hash map.

```

## Parents

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

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