Ignore:
Timestamp:
Oct 4, 2017, 3:31:43 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
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, resolv-new, with_gc
Children:
3364962
Parents:
3628765 (diff), bb9d8e8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    r3628765 rb7778c1  
    369369                        DWTIterator begin( dwts.begin() ), end( dwts.end() );
    370370                        if ( begin == end ) return;
    371                         FixFunction fixer;
     371                        PassVisitor<FixFunction> fixer;
    372372                        DWTIterator i = begin;
    373373                        *i = (*i)->acceptMutator( fixer );
    374                         if ( fixer.get_isVoid() ) {
     374                        if ( fixer.pass.isVoid ) {
    375375                                DWTIterator j = i;
    376376                                ++i;
     
    383383                                ++i;
    384384                                for ( ; i != end; ++i ) {
    385                                         FixFunction fixer;
     385                                        PassVisitor<FixFunction> fixer;
    386386                                        *i = (*i)->acceptMutator( fixer );
    387                                         if ( fixer.get_isVoid() ) {
     387                                        if ( fixer.pass.isVoid ) {
    388388                                                throw SemanticError( "invalid type void in function type ", func );
    389389                                        } // if
     
    597597                        // apply FixFunction to every assertion to check for invalid void type
    598598                        for ( DeclarationWithType *& assertion : type->assertions ) {
    599                                 FixFunction fixer;
     599                                PassVisitor<FixFunction> fixer;
    600600                                assertion = assertion->acceptMutator( fixer );
    601                                 if ( fixer.get_isVoid() ) {
     601                                if ( fixer.pass.isVoid ) {
    602602                                        throw SemanticError( "invalid type void in assertion of function ", node );
    603603                                } // if
Note: See TracChangeset for help on using the changeset viewer.