That field is used only in dumping logic inside `genCodeForBBlist`, for some reason `gtDispTree` doesn't print it.
Commit migrated from https://github.com/dotnet/coreclr/commit/
92e501f96c1403b7af4a155741a08ccbd0cbc1b4
IL_OFFSET gtStmtLastILoffs; // instr offset at end of stmt
#endif
- GenTreeILOffset(IL_OFFSETX offset)
+ GenTreeILOffset(IL_OFFSETX offset DEBUGARG(IL_OFFSET lastOffset = BAD_IL_OFFSET))
: GenTree(GT_IL_OFFSET, TYP_VOID)
, gtStmtILoffsx(offset)
#ifdef DEBUG
- , gtStmtLastILoffs(BAD_IL_OFFSET)
+ , gtStmtLastILoffs(lastOffset)
#endif
{
}
if (statement->gtStmtILoffsx != BAD_IL_OFFSET)
{
assert(!statement->IsPhiDefnStmt());
- GenTreeILOffset* ilOffset = new (comp, GT_IL_OFFSET) GenTreeILOffset(statement->gtStmtILoffsx);
+ GenTreeILOffset* ilOffset = new (comp, GT_IL_OFFSET)
+ GenTreeILOffset(statement->gtStmtILoffsx DEBUGARG(statement->gtStmtLastILoffs));
BlockRange().InsertBefore(statement->gtStmtList, ilOffset);
}