mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-09 21:11:36 -07:00
fix #by_ptr argument overrides for Linux
This commit is contained in:
@@ -1586,6 +1586,10 @@ gb_internal LLVMTypeRef lb_type_internal_for_procedures_raw(lbModule *m, Type *t
|
||||
if (params_by_ptr[i]) {
|
||||
// NOTE(bill): The parameter needs to be passed "indirectly", override it
|
||||
ft->args[i].kind = lbArg_Indirect;
|
||||
ft->args[i].attribute = nullptr;
|
||||
ft->args[i].align_attribute = nullptr;
|
||||
ft->args[i].byval_alignment = 0;
|
||||
ft->args[i].is_byval = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user