Changeset 2e9b59b for src/Validate/ForallPointerDecay.cpp
- Timestamp:
- Apr 19, 2022, 3:00:04 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- 5b84a321
- Parents:
- ba897d21 (diff), bb7c77d (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/Validate/ForallPointerDecay.cpp
rba897d21 r2e9b59b 41 41 for ( auto & type_param : decl->type_params ) { 42 42 type->forall.emplace_back( 43 new ast::TypeInstType( type_param ->name, type_param) );43 new ast::TypeInstType( type_param ) ); 44 44 } 45 45 for ( auto & assertion : decl->assertions ) { … … 70 70 AssertionList assertions; 71 71 // Substitute trait decl parameters for instance parameters. 72 ast::TypeSubstitution sub( 73 inst->base->params.begin(), 74 inst->base->params.end(), 75 inst->params.begin() 76 ); 72 ast::TypeSubstitution sub( inst->base->params, inst->params ); 77 73 for ( const ast::ptr<ast::Decl> & decl : inst->base->members ) { 78 74 ast::ptr<ast::DeclWithType> copy =
Note:
See TracChangeset
for help on using the changeset viewer.