# cbe: codegen int_from_ptr of slice correctly · gitcafe/zig

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

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

Visibility: public

Requested revision: 67997a699a4a1ee20fb189f38077a4bb29c096b3

Requested commit: 67997a699a4a1ee20fb189f38077a4bb29c096b3

Commit: 67997a699a4a1ee20fb189f38077a4bb29c096b3

Tree: 0053cd5ea2ab1839e7e271693e78e314dae9c32d

Author: mlugg

Committer: Andrew Kelley

## Message

```
cbe: codegen int_from_ptr of slice correctly

CBE was translating to access the `len` field rather than `ptr`.
Air.zig specifies that this operation is valid on a slice.

```

## Parents

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

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