Skip to content

Commit

Permalink
Merge pull request #3035 from 0dvictor/transform
Browse files Browse the repository at this point in the history
Properly set bytecode info when save node to temp
  • Loading branch information
andrewcraik committed Sep 26, 2018
2 parents 8e4fb71 + b78014c commit a245695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/compiler/optimizer/J9TransformUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,7 @@ J9::TransformUtil::saveNodeToTempSlot(TR::Compilation* comp, TR::Node* node, TR:
auto type = node->getDataType();
auto symRef = comp->getSymRefTab()->createTemporary(comp->getMethodSymbol(), type);
insertTreeTop->insertBefore(TR::TreeTop::create(comp, TR::Node::createWithSymRef(comp->il.opCodeForDirectStore(type), 1, 1, node, symRef)));
return TR::Node::createWithSymRef(comp->il.opCodeForDirectLoad(type), 0, symRef);
return TR::Node::createWithSymRef(node, comp->il.opCodeForDirectLoad(type), 0, symRef);
}


Expand Down

0 comments on commit a245695

Please sign in to comment.