// sig - The InitializeArray signature.
//
// Return Value:
-// A pointer to the newly create GT_COPYBLK node if the replacement succeeds or
+// A pointer to the newly created GT_COPYBLK node if the replacement succeeds or
// nullptr otherwise.
//
// Notes:
if ((beginArgs == nullptr) ||
(numArgsArg == nullptr) ||
- (numArgsArg->Current()->OperGet() != GT_CNS_INT) ||
+ (!numArgsArg->Current()->IsCnsIntOrI()) ||
(numArgsArg->Current()->AsIntCon()->IconValue() < 1) ||
(numArgsArg->Current()->AsIntCon()->IconValue() > 64))
{
{
GenTree* lowerBoundNode = arg->Current();
- if (lowerBoundNode->OperGet() != GT_CNS_INT)
- return nullptr;
-
- if (lowerBoundNode->AsIntCon()->IconValue() == 0)
+ if (lowerBoundNode->IsIntegralConst(0))
isMDArray = false;
}
GenTree* lengthNode = arg->Current();
- if (lengthNode->OperGet() != GT_CNS_INT)
+ if (!lengthNode->IsCnsIntOrI())
return nullptr;
numElements *= S_SIZE_T(lengthNode->AsIntCon()->IconValue());
}
node->gtFlags |= args->gtFlags & GTF_GLOB_EFFECT;
+ node->gtCall.compileTimeHelperArgumentHandle = (CORINFO_GENERIC_HANDLE)pResolvedToken->hClass;
// Remember that this basic block contains 'new' of a md array
compCurBB->bbFlags |= BBF_HAS_NEWARRAY;