# IR: better array len instruction · gitcafe/zig

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

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

Visibility: public

Requested revision: 0ab953acb2b7192c5907a1c9d9ed9cf850530af2

Requested commit: 0ab953acb2b7192c5907a1c9d9ed9cf850530af2

Commit: 0ab953acb2b7192c5907a1c9d9ed9cf850530af2

Tree: 9bddba043688aa39c34601530f2db51d126f5e93

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
IR: better array len instruction

reference the "len" field directly instead of looking it up by
name since we already know exactly where the field metadata is

```

## Parents

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

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