Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/coreclr/jit/objectalloc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ bool ObjectAllocator::MorphAllocObjNodes()
bool didStackAllocate = false;
m_PossiblyStackPointingPointers = BitVecOps::MakeEmpty(&m_bitVecTraits);
m_DefinitelyStackPointingPointers = BitVecOps::MakeEmpty(&m_bitVecTraits);
const bool isReadyToRun = comp->opts.IsReadyToRun() && !comp->IsTargetAbi(CORINFO_NATIVEAOT_ABI);

for (BasicBlock* const block : comp->Blocks())
{
Expand Down Expand Up @@ -419,7 +420,7 @@ bool ObjectAllocator::MorphAllocObjNodes()
{
allocType = OAT_NEWOBJ;
}
else if (!comp->opts.IsReadyToRun() && data->IsHelperCall())
else if (!isReadyToRun && data->IsHelperCall())
{
switch (data->AsCall()->GetHelperNum())
{
Expand Down Expand Up @@ -471,7 +472,7 @@ bool ObjectAllocator::MorphAllocObjNodes()

// R2R not yet supported
//
assert(!comp->opts.IsReadyToRun());
assert(!isReadyToRun);

//------------------------------------------------------------------------
// We expect the following expression tree at this point
Expand Down
Loading