Changeset e220391 for src/SymTab


Ignore:
Timestamp:
Oct 20, 2017, 10:19:57 AM (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, resolv-new, with_gc
Children:
2e30d47, 70529dc
Parents:
a15b72c
Message:

Fix gcc 4/5 error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Autogen.cc

    ra15b72c re220391  
    311311        void FuncGenerator::generatePrototypes( std::list< FunctionDecl * > & newFuncs ) {
    312312                bool concurrent_type = isConcurrentType();
    313                 for ( const FuncData & data : data ) {
     313                for ( const FuncData & d : data ) {
    314314                        // generate a function (?{}, ?=?, ^?{}) based on the current FuncData.
    315                         FunctionType * ftype = data.genType( type );
     315                        FunctionType * ftype = d.genType( type );
    316316
    317317                        // destructor for concurrent type must be mutex
    318                         if ( concurrent_type && CodeGen::isDestructor( data.fname ) ) {
     318                        if ( concurrent_type && CodeGen::isDestructor( d.fname ) ) {
    319319                                ftype->parameters.front()->get_type()->set_mutex( true );
    320320                        }
    321321
    322                         newFuncs.push_back( genFunc( data.fname, ftype, functionNesting ) );
     322                        newFuncs.push_back( genFunc( d.fname, ftype, functionNesting ) );
    323323                }
    324324        }
Note: See TracChangeset for help on using the changeset viewer.