Changeset 2efe4b8 for src/ResolvExpr/Resolver.cc
- Timestamp:
- Apr 25, 2018, 3:42:34 PM (5 years ago)
- Branches:
- new-env, with_gc
- Children:
- 1cdfa82
- Parents:
- 5af7306
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r5af7306 r2efe4b8 148 148 assertf( untyped, "expected a non-null expression." ); 149 149 150 new_generation(); // set up GC younggeneration for this top-level expression150 auto guard = new_generation(); // set up GC generation for this top-level expression 151 151 152 152 TypeEnvironment env; … … 177 177 findMinCost( candidates.begin(), candidates.end(), back_inserter( winners ) ); 178 178 if ( winners.size() == 0 ) { 179 collect_young();180 179 SemanticError( untyped, toString( 181 180 "No reasonable alternatives for ", kindStr, (kindStr != "" ? " " : ""), … … 189 188 printAlts( winners, stream, 1 ); 190 189 191 collect_young();192 190 SemanticError( untyped->location, stream.str() ); 193 191 } … … 196 194 Alternative & choice = winners.front(); 197 195 if ( findDeletedExpr( choice.expr ) ) { 198 collect_young( choice.expr );196 trace( choice.expr ); 199 197 SemanticError( choice.expr, 200 198 "Unique best alternative includes deleted identifier in " ); 201 199 } 202 200 alt = std::move( choice ); 203 collect_young( alt );201 trace( alt ); 204 202 } 205 203
Note: See TracChangeset
for help on using the changeset viewer.