Get rid of SymOffExp.

This commit is contained in:
Alexey Prokhin
2010-12-19 14:08:13 +03:00
parent fbbb832187
commit 1fc3dbaeb0

View File

@@ -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);