| author | |
| committer | |
| log | 6db589fff5be05e3e782a34443a1133ebc6ef17d |
| tree | 4d8d2b4468a6f822514e7de1205496ad5986f56f |
| parent | 08708ea4dc3885fba8843142e0e0804f65bf0d76 |
it just causes a segfault1 files changed, 6 insertions(+), 1 deletions(-)
src/codegen.cpp+6-1| ... | ... | @@ -337,7 +337,12 @@ static LLVMCallConv get_llvm_cc(CodeGen *g, CallingConvention cc) { |
| 337 | 337 | if (g->zig_target.arch.arch == ZigLLVM_x86 || |
| 338 | 338 | g->zig_target.arch.arch == ZigLLVM_x86_64) |
| 339 | 339 | { |
| 340 | return LLVMColdCallConv; | |
| 340 | // cold calling convention is not supported on windows | |
| 341 | if (g->zig_target.os == ZigLLVM_Win32) { | |
| 342 | return LLVMCCallConv; | |
| 343 | } else { | |
| 344 | return LLVMColdCallConv; | |
| 345 | } | |
| 341 | 346 | } else { |
| 342 | 347 | return LLVMCCallConv; |
| 343 | 348 | } |