Changes in src/Validate/Autogen.cpp [14c0f7b:b1e21da]
- File:
-
- 1 edited
-
src/Validate/Autogen.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/Autogen.cpp
r14c0f7b rb1e21da 532 532 ) 533 533 ); 534 auto stmt =genImplicitCall(534 return genImplicitCall( 535 535 srcParam, dstSelect, location, func->name, 536 536 field, direction 537 537 ); 538 // This could return the above directly, except the generated code is539 // built using the structure's members and that means all the scoped540 // names (the forall parameters) are incorrect. This corrects them.541 if ( stmt && !decl->params.empty() ) {542 ast::DeclReplacer::TypeMap oldToNew;543 for ( auto pair : group_iterate( decl->params, func->type_params ) ) {544 oldToNew.emplace( std::get<0>(pair), std::get<1>(pair) );545 }546 auto node = ast::DeclReplacer::replace( stmt, oldToNew );547 stmt = strict_dynamic_cast<const ast::Stmt *>( node );548 }549 return stmt;550 538 } 551 539
Note:
See TracChangeset
for help on using the changeset viewer.