# Sema: implement comptime \`coerce_result_ptr\` and \`alloc\` · gitcafe/zig

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

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

Visibility: public

Requested revision: e851d89113a57064c38ed85722edc7f686d0c11a

Requested commit: e851d89113a57064c38ed85722edc7f686d0c11a

Commit: e851d89113a57064c38ed85722edc7f686d0c11a

Tree: 959a2858d2fe1e72356b888c9e67b1866b81b41c

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: implement comptime `coerce_result_ptr` and `alloc`

This is progress towards being able to use `builtin.cpu.arch` instead of
the `stage2_arch` workaround. The next blocker is comptime `elemVal`.

```

## Parents

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

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