From 1fc3dbaeb095a9a5dd90fac13abfdc0b9ba82da2 Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Sun, 19 Dec 2010 14:08:13 +0300 Subject: [PATCH] Get rid of SymOffExp. --- dmd2/declaration.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dmd2/declaration.c b/dmd2/declaration.c index 9a143da3..fdee2e5a 100644 --- a/dmd2/declaration.c +++ b/dmd2/declaration.c @@ -1687,7 +1687,11 @@ Expression *VarDeclaration::callScopeDtor(Scope *sc) if (array) { // Typeinfo.destroy(cast(void*)&v); +#if IN_LLVM + Expression *ea = new AddrExp(loc, new DsymbolExp(loc, this)); +#else Expression *ea = new SymOffExp(loc, this, 0, 0); +#endif ea = new CastExp(loc, ea, Type::tvoid->pointerTo()); Expressions *args = new Expressions(); args->push(ea);