# stage2: use correct register alias for mem operands · gitcafe/zig

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

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

Visibility: public

Requested revision: 7747bf07c73a174dbd8c976dca8a94114c49349d

Requested commit: 7747bf07c73a174dbd8c976dca8a94114c49349d

Commit: 7747bf07c73a174dbd8c976dca8a94114c49349d

Tree: 334da8cf215f3af6292159e62024d1192b65153e

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
stage2: use correct register alias for mem operands

When loading/storing on the stack, use `registerAlias` to correctly
workout the size of the register and thus correctly select target
instruction.

```

## Parents

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

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