Changeset 417117e for src/ResolvExpr
- Timestamp:
- Jun 28, 2019, 3:50:21 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 03bf5c8
- Parents:
- 55b6476
- Location:
- src/ResolvExpr
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CandidateFinder.cpp
r55b6476 r417117e 370 370 // push empty tuple expression 371 371 newResult.parent = i; 372 std::vector< ast::ptr< ast::Expr > > emptyList; 373 newResult.expr = 374 new ast::TupleExpr{ CodeLocation{}, move( emptyList ) }; 372 newResult.expr = new ast::TupleExpr{ CodeLocation{}, {} }; 375 373 argType = newResult.expr->result; 376 374 } else { -
src/ResolvExpr/ResolveTypeof.cc
r55b6476 r417117e 153 153 } 154 154 155 return newType ;155 return newType.release(); 156 156 } 157 157 }; -
src/ResolvExpr/Resolver.cc
r55b6476 r417117e 1109 1109 1110 1110 // set up and resolve expression cast to void 1111 ast:: CastExpr *untyped = new ast::CastExpr{ expr };1111 ast::ptr< ast::CastExpr > untyped = new ast::CastExpr{ expr }; 1112 1112 CandidateRef choice = findUnfinishedKindExpression( 1113 1113 untyped, symtab, "", anyCandidate, ResolvMode::withAdjustment() ); … … 1248 1248 }; 1249 1249 1250 void resolve( std::list< ast::ptr< ast::Decl> >& translationUnit ) {1250 void resolve( std::list< ast::ptr< ast::Decl > >& translationUnit ) { 1251 1251 ast::Pass< Resolver_new > resolver; 1252 1252 accept_all( translationUnit, resolver ); … … 1282 1282 ast::ptr< ast::FunctionDecl > ret = functionDecl; 1283 1283 for ( unsigned i = 0; i < functionDecl->type->params.size(); ++i ) { 1284 const ast::ptr< ast::DeclWithType> & d = functionDecl->type->params[i];1284 const ast::ptr< ast::DeclWithType > & d = functionDecl->type->params[i]; 1285 1285 1286 1286 if ( const ast::ObjectDecl * obj = d.as< ast::ObjectDecl >() ) { … … 1299 1299 } 1300 1300 } 1301 return ret. get();1301 return ret.release(); 1302 1302 } 1303 1303
Note: See TracChangeset
for help on using the changeset viewer.