changeset 1409:ecfec65d86cf

Automated merge with http://hg.dsource.org/projects/ldc
author Christian Kamm <kamm incasoftware de>
date Fri, 22 May 2009 10:18:04 +0200
parents 9a049fd1a014 (diff) afecdb8ee962 (current diff)
children cc2d8a7388c7
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gen/functions.cpp	Fri May 22 10:17:47 2009 +0200
+++ b/gen/functions.cpp	Fri May 22 10:18:04 2009 +0200
@@ -145,7 +145,7 @@
             argtype = ltd;
         }
         // byval
-        else if (abi->passByVal(argtype))
+        else if (abi->passByVal(byref ? argtype->pointerTo() : argtype))
         {
             if (!byref) a |= llvm::Attribute::ByVal;
             byref = true;