# compiler: audit uses of \`ptr.addr\` in the frontend · gitcafe/zig

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

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

Visibility: public

Requested revision: 152a2ceaf738301cd59165a4f17d915391321bdc

Requested commit: 152a2ceaf738301cd59165a4f17d915391321bdc

Commit: 152a2ceaf738301cd59165a4f17d915391321bdc

Tree: f2239a36d9d2ce92bfaf34742620ce74ec7defb5

Author: mlugg

Committer: mlugg

## Message

```
compiler: audit uses of `ptr.addr` in the frontend

This commit also performs some refactors to `TypedValue.print` in
preparation for improved comptime pointer access logic. Once that logic
exists, `TypedValue.print` can use Sema to access pointers for more
helpful printing.

This commit also implements proposal #19435, because the existing logic
there relied on some blatantly incorrect code in `Value.sliceLen`.

Resolves: #19435

```

## Parents

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

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