Changes in src/ResolvExpr/Resolver.cc [2890212:665f432]
- File:
-
- 1 edited
-
src/ResolvExpr/Resolver.cc (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r2890212 r665f432 485 485 visit_children = false; 486 486 findVoidExpression( asmExpr->operand, indexer ); 487 if ( asmExpr->get_inout() ) {488 findVoidExpression( asmExpr->inout, indexer );489 } // if490 487 } 491 488 … … 1054 1051 const ast::Expr * postmutate( const ast::CastExpr * castExpr ) { 1055 1052 if ( 1056 castExpr->isGenerated == ast::GeneratedCast1053 castExpr->isGenerated 1057 1054 && typesCompatible( castExpr->arg->result, castExpr->result ) 1058 1055 ) { … … 1108 1105 1109 1106 // set up and resolve expression cast to void 1110 ast:: ptr< ast::CastExpr >untyped = new ast::CastExpr{ expr };1107 ast::CastExpr * untyped = new ast::CastExpr{ expr }; 1111 1108 CandidateRef choice = findUnfinishedKindExpression( 1112 1109 untyped, symtab, "", anyCandidate, ResolvMode::withAdjustment() ); … … 1247 1244 }; 1248 1245 1249 void resolve( std::list< ast::ptr< ast::Decl> >& translationUnit ) {1246 void resolve( std::list< ast::ptr<ast::Decl> >& translationUnit ) { 1250 1247 ast::Pass< Resolver_new > resolver; 1251 1248 accept_all( translationUnit, resolver ); … … 1281 1278 ast::ptr< ast::FunctionDecl > ret = functionDecl; 1282 1279 for ( unsigned i = 0; i < functionDecl->type->params.size(); ++i ) { 1283 const ast::ptr< ast::DeclWithType> & d = functionDecl->type->params[i];1280 const ast::ptr<ast::DeclWithType> & d = functionDecl->type->params[i]; 1284 1281 1285 1282 if ( const ast::ObjectDecl * obj = d.as< ast::ObjectDecl >() ) { … … 1298 1295 } 1299 1296 } 1300 return ret. release();1297 return ret.get(); 1301 1298 } 1302 1299 … … 1321 1318 // in case we decide to allow nested enums 1322 1319 GuardValue( inEnumDecl ); 1323 inEnumDecl = true;1320 inEnumDecl = false; 1324 1321 } 1325 1322 … … 1365 1362 asmExpr = ast::mutate_field( 1366 1363 asmExpr, &ast::AsmExpr::operand, findVoidExpression( asmExpr->operand, symtab ) ); 1367 1368 if ( asmExpr->inout ) {1369 asmExpr = ast::mutate_field(1370 asmExpr, &ast::AsmExpr::inout, findVoidExpression( asmExpr->inout, symtab ) );1371 }1372 1364 1373 1365 return asmExpr;
Note:
See TracChangeset
for help on using the changeset viewer.