[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:
Tomas Lindquist Olsen 2008-06-03 13:51:09 +02:00
parent d50cb50aaf
commit 590d44d302
8 changed files with 153 additions and 113 deletions

View file

@ -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();
}
//////////////////////////////////////////////////////////////////////////////////////////