Skip to content

Commit

Permalink
Merge pull request #7481 from dylanjtuttle/zeroNewArray
Browse files Browse the repository at this point in the history
Guarantee new array will be zero initialized in transformArrayCloneCall
  • Loading branch information
vijaysun-omr authored Oct 4, 2024
2 parents 56a6b83 + 09f3256 commit 13d47ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/optimizer/ValuePropagationCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4120,7 +4120,7 @@ void OMR::ValuePropagation::transformArrayCloneCall(TR::TreeTop *callTree, OMR::
}
else
{
TR::SymbolReference *symRef = comp()->getSymRefTab()->findOrCreateNewArrayNoZeroInitSymbolRef(objNode->getSymbolReference()->getOwningMethodSymbol(comp()));
TR::SymbolReference *symRef = comp()->getSymRefTab()->findOrCreateNewArraySymbolRef(objNode->getSymbolReference()->getOwningMethodSymbol(comp()));
TR::Node::recreateWithoutProperties(callNode, TR::newarray, 2, lenNode, typeConst, symRef);
callNode->setCanSkipZeroInitialization(true);
}
Expand Down

0 comments on commit 13d47ea

Please sign in to comment.