Changeset 3337 for proto/pabloj


Ignore:
Timestamp:
Jun 19, 2013, 10:28:21 PM (6 years ago)
Author:
ksherdy
Message:

Deep copies.

Location:
proto/pabloj/trunk/src/toolchain/pabloS/transformer/visitors/carry
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • proto/pabloj/trunk/src/toolchain/pabloS/transformer/visitors/carry/CarryBuiltinTranslator.java

    r3327 r3337  
    9191            ASTNode returnValue) {
    9292       
    93         ASTNode [] args = makePabloBlkCallArgs(arguments, call, returnValue);
     93        ASTNode [] args = makePabloBlkCallArgs(arguments, call, returnValue.deepCopy());
    9494       
    9595        Locator locator = node;
  • proto/pabloj/trunk/src/toolchain/pabloS/transformer/visitors/carry/CarryIntroXFormer.java

    r3330 r3337  
    158158                Counter counter = selectCounter(builtin, carryCounter, advanceNCounter);
    159159                CarryBuiltinTranslator translator = (CarryBuiltinTranslator) builtin.getTranslator();
    160                 IdentifierNode returnValue = lhs;
    161                 translator.translate(builtin, funcCall, counter, context, returnValue);
     160                IdentifierNode returnValue = lhs.deepCopy();
     161                translator.translate(builtin, funcCall, counter, context, returnValue.deepCopy());
    162162               
    163163                node.replaceChild(lhs, counter.makeGetCarryCall(node,context));
Note: See TracChangeset for help on using the changeset viewer.