Mercurial > projects > ldc
diff dmd/statement.c @ 379:d632801b15f0
Introducing opaque type to dmd frontent to be used with certain runtime array
and aa args and returns. There are still some bugs with aas.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 22 Jul 2008 23:06:46 +0200 |
parents | d8234836b40f |
children | 2bf65352fb28 |
line wrap: on
line diff
--- a/dmd/statement.c Tue Jul 22 19:24:40 2008 +0200 +++ b/dmd/statement.c Tue Jul 22 23:06:46 2008 +0200 @@ -1600,7 +1600,7 @@ */ //LLVMDC: Build arguments. Arguments* args = new Arguments; - args->push(new Argument(STCin, Type::tvoidptr, NULL, NULL)); + args->push(new Argument(STCin, Type::topaque->arrayOf(), NULL, NULL)); args->push(new Argument(STCin, Type::tsize_t, NULL, NULL)); if (dim == 2) { Arguments* dgargs = new Arguments; @@ -1658,7 +1658,7 @@ assert(j < sizeof(fdname)); //LLVMDC: Build arguments. Arguments* args = new Arguments; - args->push(new Argument(STCin, Type::tvoid->arrayOf(), NULL, NULL)); + args->push(new Argument(STCin, Type::topaque->pointerTo(), NULL, NULL)); if (dim == 2) { Arguments* dgargs = new Arguments; dgargs->push(new Argument(STCin, Type::tvoidptr, NULL, NULL));