Changes in src/SymTab/Validate.cc [02e5ab6:37a3b8f9]
- File:
-
- 1 edited
-
src/SymTab/Validate.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
r02e5ab6 r37a3b8f9 629 629 Declaration *makeStructAssignment( StructDecl *aggregateDecl, StructInstType *refType, unsigned int functionNesting ) { 630 630 FunctionType *assignType = new FunctionType( Type::Qualifiers(), false ); 631 632 // Make function polymorphic in same parameters as generic struct, if applicable 633 std::list< TypeDecl* >& genericParams = aggregateDecl->get_parameters(); 634 for ( std::list< TypeDecl* >::const_iterator param = genericParams.begin(); param != genericParams.end(); ++param ) { 635 assignType->get_forall().push_back( (*param)->clone() ); 636 } 631 637 632 638 ObjectDecl *returnVal = new ObjectDecl( "", DeclarationNode::NoStorageClass, LinkageSpec::Cforall, 0, refType->clone(), 0 );
Note:
See TracChangeset
for help on using the changeset viewer.