# AstGen: fix crash in debug printing ZIR field types · gitcafe/zig

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

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

Visibility: public

Requested revision: 4f900e68d32be271f08e8b8844c725e0a595c467

Requested commit: 4f900e68d32be271f08e8b8844c725e0a595c467

Commit: 4f900e68d32be271f08e8b8844c725e0a595c467

Tree: ea954e0f3a55e78693c80f4978ddfa17ab86f6b7

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AstGen: fix crash in debug printing ZIR field types

The printing code did not properly set the parent Decl node field, so
the source location calculations were wrong.

closes #8825

```

## Parents

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

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