mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Call element postblit on "return array[0]".
Fixes DMD testcase 'sdtor'.
This commit is contained in:
@@ -1889,7 +1889,7 @@ void callPostblit(Loc &loc, Expression *exp, LLValue *val)
|
||||
{
|
||||
|
||||
Type *tb = exp->type->toBasetype();
|
||||
if ((exp->op == TOKvar || exp->op == TOKdotvar || exp->op == TOKstar || exp->op == TOKthis) &&
|
||||
if ((exp->op == TOKvar || exp->op == TOKdotvar || exp->op == TOKstar || exp->op == TOKthis || exp->op == TOKindex) &&
|
||||
tb->ty == Tstruct)
|
||||
{ StructDeclaration *sd = static_cast<TypeStruct *>(tb)->sym;
|
||||
if (sd->postblit)
|
||||
|
||||
Reference in New Issue
Block a user