Changeset c4c8571 for src/GenPoly
- Timestamp:
- Jul 28, 2022, 12:04:25 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- 32d1383, d0fcc82
- Parents:
- 3f95dab (diff), 2af1943 (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/GenPoly/SpecializeNew.cpp
r3f95dab rc4c8571 230 230 if ( auto tuple = type.as<ast::TupleType>() ) { 231 231 std::vector<ast::ptr<ast::Expr>> exprs; 232 for ( const ast:: Type *t : *tuple ) {232 for ( const ast::ptr<ast::Type> & t : *tuple ) { 233 233 exprs.push_back( structureArg( location, t, begin, end ) ); 234 234 } … … 248 248 if (typeMap.count(typeInst->base)) { 249 249 ast::TypeInstType * newInst = mutate(typeInst); 250 newInst->expr_id = typeMap[typeInst->base].first; 251 newInst->formal_usage = typeMap[typeInst->base].second; 250 auto const & pair = typeMap[typeInst->base]; 251 newInst->expr_id = pair.first; 252 newInst->formal_usage = pair.second; 252 253 return newInst; 253 254 } … … 462 463 if ( specialized != expr->arg ) { 463 464 // Assume that the specialization incorporates the cast. 464 std::cerr << expr <<std::endl;465 465 return specialized; 466 466 } else {
Note:
See TracChangeset
for help on using the changeset viewer.