if (lvaTrackedToVarNum == nullptr)
{
- lvaTrackedToVarNum = static_cast<unsigned*>(compGetMemArray(lclMAX_TRACKED, sizeof(unsigned), CMK_LvaTable));
+ lvaTrackedToVarNum = new (getAllocator(CMK_LvaTable)) unsigned[lclMAX_TRACKED];
}
#ifdef DEBUG
if (optLoopTable == nullptr)
{
assert(loopInd == 0);
- optLoopTable = static_cast<LoopDsc*>(compGetMemArray(MAX_LOOP_NUM, sizeof(LoopDsc), CMK_LoopOpt));
+ optLoopTable = getAllocator(CMK_LoopOpt).allocate<LoopDsc>(MAX_LOOP_NUM);
}
else
{
}
else
{
- siLatestTrackedScopes =
- static_cast<siScope**>(compiler->compGetMemArray(scopeCount, sizeof(siScope*), CMK_SiScope));
-
- for (unsigned i = 0; i < scopeCount; i++)
- {
- siLatestTrackedScopes[i] = nullptr;
- }
+ siLatestTrackedScopes = new (compiler->getAllocator(CMK_SiScope)) siScope* [scopeCount] {};
}
compiler->compResetScopeLists();