Ignore:
Timestamp:
Apr 18, 2018, 5:15:19 PM (5 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, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
Children:
2ae16219
Parents:
f74eb47
Message:

Fix missing struct definition for empty struct with chained variable declarations.

  • turn off body flag on chained declarations
  • check body flag when extracting aggregates
  • update Indexer to check body flag on aggregates
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    rf74eb47 rb2da0574  
    316316
    317317        void HoistStruct::previsit( EnumInstType * inst ) {
    318                 if ( inst->baseEnum ) {
     318                if ( inst->baseEnum && inst->baseEnum->body ) {
    319319                        declsToAddBefore.push_front( inst->baseEnum );
    320320                }
     
    322322
    323323        void HoistStruct::previsit( StructInstType * inst ) {
    324                 if ( inst->baseStruct ) {
     324                if ( inst->baseStruct && inst->baseStruct->body ) {
    325325                        declsToAddBefore.push_front( inst->baseStruct );
    326326                }
     
    328328
    329329        void HoistStruct::previsit( UnionInstType * inst ) {
    330                 if ( inst->baseUnion ) {
     330                if ( inst->baseUnion && inst->baseUnion->body ) {
    331331                        declsToAddBefore.push_front( inst->baseUnion );
    332332                }
Note: See TracChangeset for help on using the changeset viewer.