Mercurial > projects > ldc
diff dmd/mtype.c @ 930:7985bb036db4
Follow the D ABI and pass the last arg in a register if it is a struct that fits.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 03 Feb 2009 21:46:46 +0100 |
parents | 29c0d1194033 |
children | a904cc9bc064 |
line wrap: on
line diff
--- a/dmd/mtype.c Tue Feb 03 18:11:39 2009 +0100 +++ b/dmd/mtype.c Tue Feb 03 21:46:46 2009 +0100 @@ -2691,10 +2691,11 @@ this->retInPtr = false; this->usesThis = false; this->usesNest = false; + this->structInregArg = false; this->retAttrs = 0; this->thisAttrs = 0; this->reverseParams = false; - this->reverseIndex = 0; + this->firstRealArg = 0; } Type *TypeFunction::syntaxCopy() @@ -2708,7 +2709,7 @@ t->retAttrs = retAttrs; t->thisAttrs = thisAttrs; t->reverseParams = reverseParams; - t->reverseIndex = reverseIndex; + t->firstRealArg = firstRealArg; return t; }