Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInitNew.cpp

    re8616b6 r9e23b446  
    595595                if ( arg && isIntrinsicCallExpr( dtor ) ) {
    596596                        return new ast::CommaExpr(loc, arg, new ast::VariableExpr(loc, ret ) );
     597                        // return;
    597598                }
    598599
     
    653654                if ( ! result->isVoid() ) {
    654655                        static UniqueName retNamer("_tmp_cp_ret");
     656                        // result = result->clone();
    655657                        auto subResult = env->apply( result ).node;
    656658                        auto ret = new ast::ObjectDecl(loc, retNamer.newName(), subResult, nullptr );
     
    831833                        }
    832834
     835                        // stmtsToAddBefore.splice( stmtsToAddBefore.end(), fixer.pass.stmtsToAddBefore );
     836                        // stmtsToAddAfter.splice( stmtsToAddAfter.end(), fixer.pass.stmtsToAddAfter );
    833837                        unqMap[mutExpr->id] = mutExpr;
    834838                } else {
     
    13451349                auto tmp = new ast::ObjectDecl(loc, tempNamer.newName(), callExpr->args.front()->result );
    13461350                declsToAddBefore.push_back( tmp );
     1351                // delete ctorExpr;
    13471352
    13481353                // build assignment and replace constructor's first argument with new temporary
Note: See TracChangeset for help on using the changeset viewer.