aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2019-11-20 11:46:04 +0100
committerAndrew Kelley <andrew@ziglang.org>2019-12-03 12:49:08 -0500
commitfd7c7be33c95fd1bd77010378b407fc9fb4933e2 (patch)
tree6bd90fa20bfe8176dec84c9e43df85a11a254a9a /src/ir.cpp
parent0d48b60794f5a8deff61afb79fbac10621083538 (diff)
downloadzig-fd7c7be33c95fd1bd77010378b407fc9fb4933e2.tar.gz
zig-fd7c7be33c95fd1bd77010378b407fc9fb4933e2.zip
Pick up WinMain with proper CC
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 044caa4d4e..50479c1ab5 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -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;