Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInitNew.cpp

    r9e23b446 re8616b6  
    595595                if ( arg && isIntrinsicCallExpr( dtor ) ) {
    596596                        return new ast::CommaExpr(loc, arg, new ast::VariableExpr(loc, ret ) );
    597                         // return;
    598597                }
    599598
     
    654653                if ( ! result->isVoid() ) {
    655654                        static UniqueName retNamer("_tmp_cp_ret");
    656                         // result = result->clone();
    657655                        auto subResult = env->apply( result ).node;
    658656                        auto ret = new ast::ObjectDecl(loc, retNamer.newName(), subResult, nullptr );
     
    833831                        }
    834832
    835                         // stmtsToAddBefore.splice( stmtsToAddBefore.end(), fixer.pass.stmtsToAddBefore );
    836                         // stmtsToAddAfter.splice( stmtsToAddAfter.end(), fixer.pass.stmtsToAddAfter );
    837833                        unqMap[mutExpr->id] = mutExpr;
    838834                } else {
     
    13491345                auto tmp = new ast::ObjectDecl(loc, tempNamer.newName(), callExpr->args.front()->result );
    13501346                declsToAddBefore.push_back( tmp );
    1351                 // delete ctorExpr;
    13521347
    13531348                // build assignment and replace constructor's first argument with new temporary
Note: See TracChangeset for help on using the changeset viewer.