mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 08:01:11 +03:00
[svn r231] Changed: warnings are no longer treated as an error.
Added some comments and cleaned up CallExp::toElem a tiny bit. Fixed: struct literals always reported inplace assignment even if they allocated a temporary. Fixed: passing stuff to a D-style vararg which did inplace assignment was generated suboptimal code.
This commit is contained in:
parent
d50cb50aaf
commit
590d44d302
8 changed files with 153 additions and 113 deletions
|
@ -799,7 +799,9 @@ void DtoVariadicArgument(Expression* argexp, LLValue* dst)
|
|||
Logger::println("DtoVariadicArgument");
|
||||
LOG_SCOPE;
|
||||
DVarValue* vv = new DVarValue(argexp->type, dst, true);
|
||||
gIR->exps.push_back(IRExp(NULL, argexp, vv));
|
||||
DtoAssign(vv, argexp->toElem(gIR));
|
||||
gIR->exps.pop_back();
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue