mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-29 16:50:19 +02:00
Fix #49: Static arrays that don't fit in a register should be passed using byval
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user