Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Resolver.cc

    r2890212 r665f432  
    485485                visit_children = false;
    486486                findVoidExpression( asmExpr->operand, indexer );
    487                 if ( asmExpr->get_inout() ) {
    488                         findVoidExpression( asmExpr->inout, indexer );
    489                 } // if
    490487        }
    491488
     
    10541051                        const ast::Expr * postmutate( const ast::CastExpr * castExpr ) {
    10551052                                if (
    1056                                         castExpr->isGenerated == ast::GeneratedCast
     1053                                        castExpr->isGenerated
    10571054                                        && typesCompatible( castExpr->arg->result, castExpr->result )
    10581055                                ) {
     
    11081105
    11091106                // 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 };
    11111108                CandidateRef choice = findUnfinishedKindExpression(
    11121109                        untyped, symtab, "", anyCandidate, ResolvMode::withAdjustment() );
     
    12471244        };
    12481245
    1249         void resolve( std::list< ast::ptr< ast::Decl > >& translationUnit ) {
     1246        void resolve( std::list< ast::ptr<ast::Decl> >& translationUnit ) {
    12501247                ast::Pass< Resolver_new > resolver;
    12511248                accept_all( translationUnit, resolver );
     
    12811278                ast::ptr< ast::FunctionDecl > ret = functionDecl;
    12821279                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];
    12841281
    12851282                        if ( const ast::ObjectDecl * obj = d.as< ast::ObjectDecl >() ) {
     
    12981295                        }
    12991296                }
    1300                 return ret.release();
     1297                return ret.get();
    13011298        }
    13021299
     
    13211318                // in case we decide to allow nested enums
    13221319                GuardValue( inEnumDecl );
    1323                 inEnumDecl = true;
     1320                inEnumDecl = false;
    13241321        }
    13251322
     
    13651362                asmExpr = ast::mutate_field(
    13661363                        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                 }
    13721364
    13731365                return asmExpr;
Note: See TracChangeset for help on using the changeset viewer.