Calling convention, change from bitcast to transmute

This commit is contained in:
Ginger Bill
2017-04-16 16:28:39 +01:00
parent b4a339f2e3
commit 67d8f48553
3 changed files with 6 additions and 3 deletions
+1
View File
@@ -1018,6 +1018,7 @@ Type *type_to_abi_compat_param_type(gbAllocator a, Type *original_type) {
Type *new_type = original_type;
// NOTE(bill): Changing the passing parameter value type is to match C's ABI
// IMPORTANT TODO(bill): This only matches the ABI on MSVC at the moment
// SEE: https://msdn.microsoft.com/en-us/library/zthk2dkh.aspx
Type *bt = core_type(original_type);
switch (bt->kind) {
// Okay to pass by value