Changes in src/GenPoly/SpecializeNew.cpp [13d326ec:5cf1228]
- File:
-
- 1 edited
-
src/GenPoly/SpecializeNew.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/SpecializeNew.cpp
r13d326ec r5cf1228 230 230 if ( auto tuple = type.as<ast::TupleType>() ) { 231 231 std::vector<ast::ptr<ast::Expr>> exprs; 232 for ( const ast:: ptr<ast::Type> &t : *tuple ) {232 for ( const 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 auto const & pair = typeMap[typeInst->base]; 251 newInst->expr_id = pair.first; 252 newInst->formal_usage = pair.second; 250 newInst->expr_id = typeMap[typeInst->base].first; 251 newInst->formal_usage = typeMap[typeInst->base].second; 253 252 return newInst; 254 253 } … … 463 462 if ( specialized != expr->arg ) { 464 463 // 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.