# Zir: remove legacy \`error_set_decl\` variants · gitcafe/zig

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

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

Visibility: public

Requested revision: d4bc64038ce40ac3829c3f1d0dc21dfb7484818c

Requested commit: d4bc64038ce40ac3829c3f1d0dc21dfb7484818c

Commit: d4bc64038ce40ac3829c3f1d0dc21dfb7484818c

Tree: c19a38a7dbaac04cccf9d29271eadca25a0bb1eb

Author: mlugg

Committer: Matthew Lugg

## Message

```
Zir: remove legacy `error_set_decl` variants

These instructions are not emitted by AstGen. They also would have no
effect even if they did appear in ZIR: the Sema handling for these
instructions creates a Decl which the name strategy is applied to, and
proceeds to never use it. This pointless CPU heater is now gone, saving
2 ZIR tags in the process.

```

## Parents

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

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