mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-26 01:23:13 +01:00
Fix StdCall selection.
This commit is contained in:
@@ -41,7 +41,7 @@ unsigned DtoCallingConv(LINK l)
|
||||
{
|
||||
//TODO: StdCall is not a good base on Windows due to extra name mangling
|
||||
// applied there
|
||||
if (global.params.cpu == ARCHx86 && !global.params.os == OSWindows)
|
||||
if (global.params.cpu == ARCHx86 && global.params.os != OSWindows)
|
||||
return llvm::CallingConv::X86_StdCall;
|
||||
else
|
||||
return llvm::CallingConv::Fast;
|
||||
|
||||
Reference in New Issue
Block a user