mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-04 11:33:12 +01:00
Automated merge with http://hg.dsource.org/projects/ldc
This commit is contained in:
@@ -145,7 +145,7 @@ const llvm::FunctionType* DtoFunctionType(Type* type, Type* thistype, Type* nest
|
||||
argtype = ltd;
|
||||
}
|
||||
// byval
|
||||
else if (abi->passByVal(argtype))
|
||||
else if (abi->passByVal(byref ? argtype->pointerTo() : argtype))
|
||||
{
|
||||
if (!byref) a |= llvm::Attribute::ByVal;
|
||||
byref = true;
|
||||
|
||||
Reference in New Issue
Block a user