Re-enable SymOffExp and remove associated LLVM-only modifications.

This commit is contained in:
David Nadlinger
2013-06-10 23:07:06 +02:00
parent b389a3b791
commit 978c2c1b6a
11 changed files with 309 additions and 431 deletions

View File

@@ -2229,11 +2229,7 @@ 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);