Changeset bbf3fda for src/SymTab


Ignore:
Timestamp:
Apr 10, 2018, 7:08:50 PM (7 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:
43c6fe77
Parents:
33f5b57
Message:

Use ForallFixer? on every FunctionType?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    r33f5b57 rbbf3fda  
    148148                void previsit( ObjectDecl * object );
    149149                void previsit( FunctionDecl * func );
     150                void previsit( FunctionType * ftype );
    150151                void previsit( StructDecl * aggrDecl );
    151152                void previsit( UnionDecl * aggrDecl );
     
    633634
    634635        void ForallPointerDecay::previsit( ObjectDecl *object ) {
    635                 forallFixer( object->type->forall, object );
    636                 if ( PointerType *pointer = dynamic_cast< PointerType * >( object->type ) ) {
    637                         forallFixer( pointer->base->forall, object );
    638                 } // if
    639636                // ensure that operator names only apply to functions or function pointers
    640637                if ( CodeGen::isOperator( object->name ) && ! dynamic_cast< FunctionType * >( object->type->stripDeclarator() ) ) {
     
    645642
    646643        void ForallPointerDecay::previsit( FunctionDecl *func ) {
    647                 forallFixer( func->type->forall, func );
    648644                func->fixUniqueId();
     645        }
     646
     647        void ForallPointerDecay::previsit( FunctionType * ftype ) {
     648                forallFixer( ftype->forall, ftype );
    649649        }
    650650
Note: See TracChangeset for help on using the changeset viewer.