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