# codegen: Store returned value if type is 'handle_is_ptr' and function is not 'first_arg_ret'\. · gitcafe/zig

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

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

Visibility: public

Requested revision: 722b9b9e595027e76ab4255f13ad0eca539358ac

Requested commit: 722b9b9e595027e76ab4255f13ad0eca539358ac

Commit: 722b9b9e595027e76ab4255f13ad0eca539358ac

Tree: 160a103df662ed026ade45dc536907f022da54cc

Author: Eduardo Sánchez Muñoz

Committer: Andrew Kelley

## Message

```
codegen: Store returned value if type is 'handle_is_ptr' and function is not 'first_arg_ret'.

Seems to fix #1230, includes test.

```

## Parents

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

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