Changeset 63afee0 for src/SymTab
- Timestamp:
- Nov 20, 2015, 10:32:05 AM (9 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
rf066321 r63afee0 628 628 Declaration *makeStructAssignment( StructDecl *aggregateDecl, StructInstType *refType, unsigned int functionNesting ) { 629 629 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 } 630 636 631 637 ObjectDecl *returnVal = new ObjectDecl( "", DeclarationNode::NoStorageClass, LinkageSpec::Cforall, 0, refType->clone(), 0 );
Note: See TracChangeset
for help on using the changeset viewer.