Is it possible to for the Zig to implement mock_head without UB?

looks like llvm is misbehaving, it seems to have determined that your code always returns an error.

The custom backend works as expected, though it has little optimisations as it’s currently intended only for debug, and the one shipped with 0.14 is incomplete, but it works for your code snippet.

3 Likes