# stage2: refactor errors thrown for size mismatch in mirMovImpl · gitcafe/zig

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

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

Visibility: public

Requested revision: 4a40c0a80c8f7014097f3ac6f523c7e21cda80a9

Requested commit: 4a40c0a80c8f7014097f3ac6f523c7e21cda80a9

Commit: 4a40c0a80c8f7014097f3ac6f523c7e21cda80a9

Tree: a28cc9201ae104bc5a90d4833cda08ad4fc1a451

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
stage2: refactor errors thrown for size mismatch in mirMovImpl

* introduce `EmitResult` wrapper struct for easier manipulation of
  intermediate emit results - this is mainly to track errors such as
  size mismatch between operands
* create an informative `ErrorMsg` directly at the callsite

```

## Parents

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

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