mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Get rid of SymOffExp.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user