Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix build
  • Loading branch information
EgorBo committed Nov 6, 2021
commit 6264ee171942e5eccdafe7a89bda8d7283b50309
8 changes: 4 additions & 4 deletions src/coreclr/jit/morph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5604,6 +5604,10 @@ GenTree* Compiler::fgMorphArrayIndex(GenTree* tree)
cnsOff = addr->gtGetOp2();
addr = nullptr;
}
else
{
unreached();
}
#else
assert(addr->gtGetOp1()->TypeIs(TYP_REF));
addr = addr->gtGetOp2();
Expand All @@ -5624,10 +5628,6 @@ GenTree* Compiler::fgMorphArrayIndex(GenTree* tree)
// Label any constant array index contributions with #ConstantIndex and any LclVars with GTF_VAR_ARR_INDEX
addr->LabelIndex(this);
}
else
{
unreached();
}
#endif
}
else if (addr->IsCnsIntOrI())
Expand Down