Changeset e8616b6 for src/InitTweak


Ignore:
Timestamp:
Jul 26, 2022, 11:35:02 AM (2 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master, pthread-emulation
Children:
3992098, 7ce8873
Parents:
5cf1228
Message:

Changed the default Linkage on ast::ObjectDecl? from C to Cforall. There appears to be only one internal name that actually needed to be C.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInitNew.cpp

    r5cf1228 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.