# Sema: fix coerceResultPtr · gitcafe/zig

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

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

Visibility: public

Requested revision: 04572f6e341e6ff19877d1ae3b79e3baa653e652

Requested commit: 04572f6e341e6ff19877d1ae3b79e3baa653e652

Commit: 04572f6e341e6ff19877d1ae3b79e3baa653e652

Tree: 07b91717329efb36bd8c8bd266b047fff60692ff

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: fix coerceResultPtr

It did not handle properly when the dummy operand was a comptime_int; it
was crashing in coerce because comptime_int is supposed to be
comptime-known. So when calling coerceResultPtr, we pass the actual
operand, not a dummy operand, which means it will have the proper
comptime value when necessary.

```

## Parents

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

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