Mercurial > projects > ldc
changeset 170:6476da35a0fe trunk
[svn r186] Fixed 'delete this'.
author | lindquist |
---|---|
date | Tue, 06 May 2008 03:46:43 +0200 |
parents | 2df270e1ba59 |
children | 95f07e3f8bb9 |
files | gen/toir.cpp tangotests/vararg1.d |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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?)
--- 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()