diff gen/functions.cpp @ 347:6057fdf797d8 trunk

[svn r368] Fixed custom class allocators with arbitrary user arguments. Closes #25 Removed some dead code. Started on a more generalised approach to call misc. D functions.
author lindquist
date Sun, 13 Jul 2008 20:49:10 +0200
parents aaade6ded589
children 4d7495038ae8
line wrap: on
line diff
--- a/gen/functions.cpp	Sun Jul 13 09:14:01 2008 +0200
+++ b/gen/functions.cpp	Sun Jul 13 20:49:10 2008 +0200
@@ -827,8 +827,8 @@
 {
     Logger::println("DtoVariadicArgument");
     LOG_SCOPE;
-    DVarValue* vv = new DVarValue(argexp->type, dst, true);
-    DtoAssign(vv, argexp->toElem(gIR));
+    DVarValue vv(argexp->type, dst, true);
+    DtoAssign(&vv, argexp->toElem(gIR));
 }
 
 //////////////////////////////////////////////////////////////////////////////////////////