Ignore:
Timestamp:
Jun 12, 2023, 6:06:26 PM (14 months ago)
Author:
caparsons <caparson@…>
Branches:
ast-experimental, master
Children:
e172f42
Parents:
24d6572 (diff), 38e266ca (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into ast-experimental

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Resolver.cc

    r24d6572 r62d62db  
    11071107
    11081108                /// Removes cast to type of argument (unlike StripCasts, also handles non-generated casts)
    1109                 void removeExtraneousCast( ast::ptr<ast::Expr> & expr, const ast::SymbolTable & symtab ) {
     1109                void removeExtraneousCast( ast::ptr<ast::Expr> & expr ) {
    11101110                        if ( const ast::CastExpr * castExpr = expr.as< ast::CastExpr >() ) {
    11111111                                if ( typesCompatible( castExpr->arg->result, castExpr->result ) ) {
     
    11971197                ast::ptr< ast::Expr > castExpr = new ast::CastExpr{ untyped, type };
    11981198                ast::ptr< ast::Expr > newExpr = findSingleExpression( castExpr, context );
    1199                 removeExtraneousCast( newExpr, context.symtab );
     1199                removeExtraneousCast( newExpr );
    12001200                return newExpr;
    12011201        }
     
    12621262                static size_t traceId;
    12631263                Resolver_new( const ast::TranslationGlobal & global ) :
     1264                        ast::WithSymbolTable(ast::SymbolTable::ErrorDetection::ValidateOnAdd),
    12641265                        context{ symtab, global } {}
    12651266                Resolver_new( const ResolveContext & context ) :
     
    20412042                const ast::Type * initContext = currentObject.getCurrentType();
    20422043
    2043                 removeExtraneousCast( newExpr, symtab );
     2044                removeExtraneousCast( newExpr );
    20442045
    20452046                // check if actual object's type is char[]
Note: See TracChangeset for help on using the changeset viewer.