mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 07:00:46 +03:00
Fix #49: Static arrays that don't fit in a register should be passed using byval
This commit is contained in:
parent
d24592b3e7
commit
2748cdaa88
5 changed files with 12 additions and 6 deletions
|
@ -13,9 +13,8 @@
|
|||
//////////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
IrFuncTyArg::IrFuncTyArg(Type* t, bool bref, unsigned a)
|
||||
IrFuncTyArg::IrFuncTyArg(Type* t, bool bref, unsigned a) : type(t)
|
||||
{
|
||||
type = t;
|
||||
ltype = t != Type::tvoid && bref ? DtoType(t->pointerTo()) : DtoType(t);
|
||||
attrs = a;
|
||||
byref = bref;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue