zig
zig copied to clipboard
`callconv(.Naked)` functions with parameters cause silent LLVM crash when compiling for PowerPC
Zig Version
0.13.0-dev.267+793f820b3
Steps to Reproduce and Observed Behavior
The following sample will fail compiling without any logs when compiling for powerpc-freestanding-eabi (although likely any PowerPC triple will do)
export fn example(_: u32) callconv(.Naked) void {
}
Expected Behavior
I expected a log indicating LLVM crashed while trying to compile the IR to binary. Although it not crashing would be preferable.