Ignore:
Timestamp:
Mar 25, 2025, 7:53:02 PM (5 days ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
379b6ea
Parents:
d73e667
Message:

Removed two unused fields from StmtExpr?, returnDecls and dtors, and refactored computeResult to set resultExpr when it can be found at that time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/InitTweak/FixInit.cpp

    rd73e667 r446dde5  
    697697        assert( stmtExpr->result );
    698698        if ( stmtExpr->result->isVoid() ) {
    699                 assert( stmtExpr->returnDecls.empty() );
    700                 assert( stmtExpr->dtors.empty() );
    701 
    702699                return stmtExpr;
    703700        }
     
    747744        // if there is a return decl, add a use as the last statement; will not have return decl on non-constructable returns
    748745        stmts.push_back( new ast::ExprStmt(loc, new ast::VariableExpr(loc, ret ) ) );
    749 
    750         assert( stmtExpr->returnDecls.empty() );
    751         assert( stmtExpr->dtors.empty() );
    752746
    753747        return stmtExpr;
Note: See TracChangeset for help on using the changeset viewer.