Changeset 2f42718 for src/GenPoly/Specialize.cc
- Timestamp:
- Feb 22, 2019, 10:43:29 AM (5 years ago)
- Branches:
- no_list
- Parents:
- 43e0949
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Specialize.cc
r43e0949 r2f42718 91 91 if ( tuple1 && tuple2 ) { 92 92 if ( tuple1->size() != tuple2->size() ) return false; 93 for ( auto types : group_iterate( tuple1-> get_types(), tuple2->get_types()) ) {93 for ( auto types : group_iterate( tuple1->types, tuple2->types ) ) { 94 94 if ( ! matchingTupleStructure( std::get<0>( types ), std::get<1>( types ) ) ) return false; 95 95 } … … 115 115 size_t functionParameterSize( FunctionType * ftype ) { 116 116 size_t sz = 0; 117 for ( DeclarationWithType * p : ftype-> get_parameters()) {117 for ( DeclarationWithType * p : ftype->parameters ) { 118 118 sz += singleParameterSize( p->get_type() ); 119 119 } … … 227 227 } 228 228 std::unique_ptr< FunctionType > actualTypeManager( actualType ); // for RAII 229 std::list< DeclarationWithType * >::iterator actualBegin = actualType->get_parameters().begin();230 std::list< DeclarationWithType * >::iterator actualEnd = actualType->get_parameters().end();229 auto actualBegin = actualType->parameters.begin(); 230 auto actualEnd = actualType->parameters.end(); 231 231 232 232 std::list< Expression * > args; 233 for ( DeclarationWithType* param : thunkFunc->get_functionType()-> get_parameters()) {233 for ( DeclarationWithType* param : thunkFunc->get_functionType()->parameters ) { 234 234 // name each thunk parameter and explode it - these are then threaded back into the actual function call. 235 235 param->set_name( paramNamer.newName() ); … … 281 281 FunctionType *function = getFunctionType( appExpr->function->result ); 282 282 assert( function ); 283 std:: list< DeclarationWithType* >::iterator formal;283 std::vector< DeclarationWithType* >::iterator formal; 284 284 std::list< Expression* >::iterator actual; 285 for ( formal = function-> get_parameters().begin(), actual = appExpr->get_args().begin(); formal != function->get_parameters().end() && actual != appExpr->get_args().end(); ++formal, ++actual ) {285 for ( formal = function->parameters.begin(), actual = appExpr->get_args().begin(); formal != function->parameters.end() && actual != appExpr->get_args().end(); ++formal, ++actual ) { 286 286 *actual = doSpecialization( (*formal)->get_type(), *actual, &appExpr->inferParams ); 287 287 }
Note: See TracChangeset
for help on using the changeset viewer.