# HG changeset patch # User lindquist # Date 1210038403 -7200 # Node ID 6476da35a0fe688e194547b8641969557614be0e # Parent 2df270e1ba59a74e738b34e1bfdd28f15d729c84 [svn r186] Fixed 'delete this'. diff -r 2df270e1ba59 -r 6476da35a0fe gen/toir.cpp --- a/gen/toir.cpp Tue May 06 03:07:21 2008 +0200 +++ b/gen/toir.cpp Tue May 06 03:46:43 2008 +0200 @@ -1987,7 +1987,8 @@ new llvm::FreeInst(val, p->scopebb()); } } - new llvm::StoreInst(z, v->getLVal(), p->scopebb()); + if (!v->isThis()) + new llvm::StoreInst(z, v->getLVal(), p->scopebb()); } else if (e1type->ty == Tarray) { // must be on the heap (correct?) diff -r 2df270e1ba59 -r 6476da35a0fe tangotests/vararg1.d --- a/tangotests/vararg1.d Tue May 06 03:07:21 2008 +0200 +++ b/tangotests/vararg1.d Tue May 06 03:46:43 2008 +0200 @@ -1,10 +1,10 @@ module tangotests.vararg1; -import tango.io.Stdout; +import tango.stdc.stdio; void func(int[] arr...) { - Stdout.formatln("1,2,4,5,6 == {},{},{},{},{}", arr[0],arr[1],arr[2],arr[3],arr[4]); + printf("1,2,4,5,6 == %d,%d,%d,%d,%d\n", arr[0],arr[1],arr[2],arr[3],arr[4]); } void main()