Changes in src/InitTweak/FixInitNew.cpp [9e23b446:e8616b6]
- File:
-
- 1 edited
-
src/InitTweak/FixInitNew.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInitNew.cpp
r9e23b446 re8616b6 595 595 if ( arg && isIntrinsicCallExpr( dtor ) ) { 596 596 return new ast::CommaExpr(loc, arg, new ast::VariableExpr(loc, ret ) ); 597 // return;598 597 } 599 598 … … 654 653 if ( ! result->isVoid() ) { 655 654 static UniqueName retNamer("_tmp_cp_ret"); 656 // result = result->clone();657 655 auto subResult = env->apply( result ).node; 658 656 auto ret = new ast::ObjectDecl(loc, retNamer.newName(), subResult, nullptr ); … … 833 831 } 834 832 835 // stmtsToAddBefore.splice( stmtsToAddBefore.end(), fixer.pass.stmtsToAddBefore );836 // stmtsToAddAfter.splice( stmtsToAddAfter.end(), fixer.pass.stmtsToAddAfter );837 833 unqMap[mutExpr->id] = mutExpr; 838 834 } else { … … 1349 1345 auto tmp = new ast::ObjectDecl(loc, tempNamer.newName(), callExpr->args.front()->result ); 1350 1346 declsToAddBefore.push_back( tmp ); 1351 // delete ctorExpr;1352 1347 1353 1348 // build assignment and replace constructor's first argument with new temporary
Note:
See TracChangeset
for help on using the changeset viewer.