Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cpp

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