Changes in / [c66254e:a3dc4cc]
- File:
-
- 1 edited
-
src/ResolvExpr/ResolveAssertions.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/ResolveAssertions.cc
rc66254e ra3dc4cc 155 155 k += computeConversionCost( 156 156 assn.match.adjType, assn.decl->get_type(), indexer, x.env ); 157 158 // mark vars+specialization cost on function-type assertions159 PointerType* ptr = dynamic_cast< PointerType* >( assn.decl->get_type() );160 if ( ! ptr ) continue;161 FunctionType* func = dynamic_cast< FunctionType* >( ptr->base );162 if ( ! func ) continue;163 164 for ( DeclarationWithType* formal : func->parameters ) {165 k.decSpec( specCost( formal->get_type() ) );166 }167 k.incVar( func->forall.size() );168 for ( TypeDecl* td : func->forall ) {169 k.decSpec( td->assertions.size() );170 }171 157 } 172 158 it = cache.emplace_hint( it, &x, k );
Note:
See TracChangeset
for help on using the changeset viewer.