# stage2: elem vals of many pointers need not deref pointers · gitcafe/zig

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

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

Visibility: public

Requested revision: 55ccf4c7a8451edca47d8d6d82bddd9fe192744a

Requested commit: 55ccf4c7a8451edca47d8d6d82bddd9fe192744a

Commit: 55ccf4c7a8451edca47d8d6d82bddd9fe192744a

Tree: 9fd1bb8ed2c124c3162ba6f400b3af834d9b0892

Author: Mitchell Hashimoto

Committer: Andrew Kelley

## Message

```
stage2: elem vals of many pointers need not deref pointers

By the time zirElemVal is reached for a many pointer, a load has already
happened, making sure the operand is already dereferenced.

This makes `mem.sliceTo` now work.

```

## Parents

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

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