Changeset 95d09bdb for src


Ignore:
Timestamp:
Jul 17, 2018, 9:59:25 AM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
56fba87
Parents:
6da49249
Message:

Hoist aggregates defined as part of a compound literal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    r6da49249 r95d09bdb  
    8585                void previsit( AlignofExpr * );
    8686                void previsit( UntypedOffsetofExpr * );
     87                void previsit( CompoundLiteralExpr * );
    8788                void handleType( Type * );
    8889        };
     
    348349        void HoistTypeDecls::previsit( UntypedOffsetofExpr * expr ) {
    349350                handleType( expr->type );
     351        }
     352
     353        void HoistTypeDecls::previsit( CompoundLiteralExpr * expr ) {
     354                handleType( expr->result );
    350355        }
    351356
Note: See TracChangeset for help on using the changeset viewer.