# link: half-hearted bug fix for decl_state field · gitcafe/zig

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

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

Visibility: public

Requested revision: e39c86399da565d3855d54b242bf7b5940e3924d

Requested commit: e39c86399da565d3855d54b242bf7b5940e3924d

Commit: e39c86399da565d3855d54b242bf7b5940e3924d

Tree: b67c392b14d2adc64e15c890ed978daf05fb9ceb

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
link: half-hearted bug fix for decl_state field

The init()/commit() API of this field leads to the type of bug that this
commit fixes by defering an uncomfortably complex expression. I didn't
bother doing the equivalent fix in link/MachO.zig because instead I
think the `decl_state` field should be entirely removed from Dwarf.

```

## Parents

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

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