Changeset 918e4165


Ignore:
Timestamp:
Jun 8, 2023, 2:02:06 PM (18 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ast-experimental, master
Children:
334801b
Parents:
55266c7
Message:

Removed some warnings.

Location:
src/ResolvExpr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CommonType.cc

    r55266c7 r918e4165  
    10171017                void postvisit( const ast::TraitInstType * ) {}
    10181018
    1019                 void postvisit( const ast::TypeInstType * inst ) {}
    1020 
    1021                 void postvisit( const ast::TupleType * tuple) {
     1019                void postvisit( const ast::TypeInstType * ) {}
     1020
     1021                void postvisit( const ast::TupleType * tuple ) {
    10221022                        tryResolveWithTypedEnum( tuple );
    10231023                }
  • src/ResolvExpr/Resolver.cc

    r55266c7 r918e4165  
    11061106
    11071107                /// Removes cast to type of argument (unlike StripCasts, also handles non-generated casts)
    1108                 void removeExtraneousCast( ast::ptr<ast::Expr> & expr, const ast::SymbolTable & symtab ) {
     1108                void removeExtraneousCast( ast::ptr<ast::Expr> & expr ) {
    11091109                        if ( const ast::CastExpr * castExpr = expr.as< ast::CastExpr >() ) {
    11101110                                if ( typesCompatible( castExpr->arg->result, castExpr->result ) ) {
     
    11961196                ast::ptr< ast::Expr > castExpr = new ast::CastExpr{ untyped, type };
    11971197                ast::ptr< ast::Expr > newExpr = findSingleExpression( castExpr, context );
    1198                 removeExtraneousCast( newExpr, context.symtab );
     1198                removeExtraneousCast( newExpr );
    11991199                return newExpr;
    12001200        }
     
    20412041                const ast::Type * initContext = currentObject.getCurrentType();
    20422042
    2043                 removeExtraneousCast( newExpr, symtab );
     2043                removeExtraneousCast( newExpr );
    20442044
    20452045                // check if actual object's type is char[]
Note: See TracChangeset for help on using the changeset viewer.