This commit is contained in:
Christian Kamm
2009-05-22 10:18:04 +02:00

View File

@@ -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;