mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-28 22:41:29 +02:00
[svn r186] Fixed 'delete this'.
This commit is contained in:
@@ -1987,7 +1987,8 @@ DValue* DeleteExp::toElem(IRState* p)
|
||||
new llvm::FreeInst(val, p->scopebb());
|
||||
}
|
||||
}
|
||||
new llvm::StoreInst(z, v->getLVal(), p->scopebb());
|
||||
if (!v->isThis())
|
||||
new llvm::StoreInst(z, v->getLVal(), p->scopebb());
|
||||
}
|
||||
else if (e1type->ty == Tarray) {
|
||||
// must be on the heap (correct?)
|
||||
|
||||
Reference in New Issue
Block a user