Merge pull request #11573 from NilsLankila/symexp-varexp-size

optimize instance size of SymbolExp and VarExp
This commit is contained in:
Nicholas Wilson 2020-08-19 12:20:53 +08:00 committed by GitHub
commit 491c044710
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -3458,8 +3458,8 @@ extern (C++) final class NewAnonClassExp : Expression
extern (C++) class SymbolExp : Expression
{
Declaration var;
bool hasOverloads;
Dsymbol originalScope; // original scope before inlining
bool hasOverloads;
extern (D) this(const ref Loc loc, TOK op, int size, Declaration var, bool hasOverloads)
{

View file

@ -540,8 +540,8 @@ class SymbolExp : public Expression
{
public:
Declaration *var;
bool hasOverloads;
Dsymbol *originalScope;
bool hasOverloads;
void accept(Visitor *v) { v->visit(this); }
};