Pick up WinMain with proper CC

This commit is contained in:
LemonBoy
2019-11-20 11:46:04 +01:00
committed by Andrew Kelley
parent 0d48b60794
commit fd7c7be33c
4 changed files with 31 additions and 18 deletions

View File

@@ -16134,8 +16134,7 @@ static IrInstruction *ir_analyze_instruction_export(IrAnalyze *ira, IrInstructio
case CallingConventionNaked:
case CallingConventionCold:
case CallingConventionStdcall:
add_fn_export(ira->codegen, fn_entry, buf_ptr(symbol_name), global_linkage_id,
cc == CallingConventionC);
add_fn_export(ira->codegen, fn_entry, buf_ptr(symbol_name), global_linkage_id, cc);
break;
}
} break;