# AstGen: emit dbg_stmt before \(nearly\) all operations that have a safety check · gitcafe/zig

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

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

Visibility: public

Requested revision: 25c850642190bf9939790b872a3657410ec4d19f

Requested commit: 25c850642190bf9939790b872a3657410ec4d19f

Commit: 25c850642190bf9939790b872a3657410ec4d19f

Tree: 48d1c8858ef83f74e627b899ac3321285f46a7e1

Author: Veikka Tuominen

Committer: Veikka Tuominen

## Message

```
AstGen: emit dbg_stmt before (nearly) all operations that have a safety check

All implicit casts can also potentially lead to a panic being emitted
but adding a dbg_stmt before every instruction is not feasible.

This adds 24k new instructions to the ZIR for Sema.zig increasing its
size from 3.8MiB to 4.0MiB.

Closes #13488

```

## Parents

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

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