Skip to content

Commit

Permalink
Clarify the purpose of GenTreeArrElem
Browse files Browse the repository at this point in the history
  • Loading branch information
SingleAccretion committed Jul 8, 2021
1 parent 767c36d commit fd8421a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/coreclr/jit/gentree.h
Original file line number Diff line number Diff line change
Expand Up @@ -5366,9 +5366,9 @@ struct GenTreeBoundsChk : public GenTree
}
};

// gtArrElem -- general array element (GT_ARR_ELEM), for non "SZ_ARRAYS"
// -- multidimensional arrays, or 1-d arrays with non-zero lower bounds.

// GenTreeArrElem - bounds checked address (byref) of a general array element,
// for multidimensional arrays, or 1-d arrays with non-zero lower bounds.
//
struct GenTreeArrElem : public GenTree
{
GenTree* gtArrObj;
Expand All @@ -5384,7 +5384,7 @@ struct GenTreeArrElem : public GenTree
// This has caused VSW 571394.
var_types gtArrElemType; // The array element type

// Requires that "inds" is a pointer to an array of "rank" GenTreePtrs for the indices.
// Requires that "inds" is a pointer to an array of "rank" nodes for the indices.
GenTreeArrElem(
var_types type, GenTree* arr, unsigned char rank, unsigned char elemSize, var_types elemType, GenTree** inds)
: GenTree(GT_ARR_ELEM, type), gtArrObj(arr), gtArrRank(rank), gtArrElemSize(elemSize), gtArrElemType(elemType)
Expand Down

0 comments on commit fd8421a

Please sign in to comment.