Changeset 63afee0 for src/SymTab


Ignore:
Timestamp:
Nov 20, 2015, 10:32:05 AM (9 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
66a2a61
Parents:
f066321 (diff), 258eb5c9 (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 /u/cforall/software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    rf066321 r63afee0  
    628628        Declaration *makeStructAssignment( StructDecl *aggregateDecl, StructInstType *refType, unsigned int functionNesting ) {
    629629                FunctionType *assignType = new FunctionType( Type::Qualifiers(), false );
     630
     631                // Make function polymorphic in same parameters as generic struct, if applicable
     632                std::list< TypeDecl* >& genericParams = aggregateDecl->get_parameters();
     633                for ( std::list< TypeDecl* >::const_iterator param = genericParams.begin(); param != genericParams.end(); ++param ) {
     634                        assignType->get_forall().push_back( (*param)->clone() );
     635                }
    630636 
    631637                ObjectDecl *returnVal = new ObjectDecl( "", DeclarationNode::NoStorageClass, LinkageSpec::Cforall, 0, refType->clone(), 0 );
Note: See TracChangeset for help on using the changeset viewer.