mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 08:01:11 +03:00
Fixed lazy arguments again.
This commit is contained in:
parent
cc612c7290
commit
b8e9d554e5
1 changed files with 6 additions and 1 deletions
|
@ -699,7 +699,12 @@ void DtoDefineFunction(FuncDeclaration* fd)
|
|||
if (!refout && (!f->fty->args[i]->byref || lazy))
|
||||
{
|
||||
// alloca a stack slot for this first class value arg
|
||||
LLValue* mem = DtoAlloca(DtoType(vd->type), vd->ident->toChars());
|
||||
const LLType* argt;
|
||||
if (lazy)
|
||||
argt = irloc->value->getType();
|
||||
else
|
||||
argt = DtoType(vd->type);
|
||||
LLValue* mem = DtoAlloca(argt, vd->ident->toChars());
|
||||
|
||||
// let the abi transform the argument back first
|
||||
DImValue arg_dval(vd->type, irloc->value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue