mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 08:30:47 +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
|
@ -162,6 +162,7 @@ llvm::FunctionType* DtoFunctionType(Type* type, Type* thistype, Type* nesttype,
|
|||
else if (abi->passByVal(byref ? argtype->pointerTo() : argtype))
|
||||
{
|
||||
if (!byref) a |= llvm::Attribute::ByVal;
|
||||
// set byref, because byval requires a pointed LLVM type
|
||||
byref = true;
|
||||
}
|
||||
// sext/zext
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue