Skip to content

Commit

Permalink
revert part of pull 724
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Feb 18, 2012
1 parent b558967 commit d490278
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/clone.c
Expand Up @@ -204,8 +204,10 @@ int StructDeclaration::needOpEquals()
if (hasIdentityEquals)
goto Lneed;

#if 0
if (isUnionDeclaration())
goto Ldontneed;
#endif

/* If any of the fields has an opEquals, then we
* need it too.
Expand All @@ -218,12 +220,14 @@ int StructDeclaration::needOpEquals()
if (v->storage_class & STCref)
continue;
Type *tv = v->type->toBasetype();
#if 0
if (tv->isfloating())
goto Lneed;
if (tv->ty == Tarray)
goto Lneed;
if (tv->ty == Tclass)
goto Lneed;
#endif
while (tv->ty == Tsarray)
{ TypeSArray *ta = (TypeSArray *)tv;
tv = tv->nextOf()->toBasetype();
Expand Down

0 comments on commit d490278

Please sign in to comment.