This node was incorrectly typed as `TYP_GCREF`, which was causing an
assertion during GC stress in internal testing.
Fixes VSO 482577.
Commit migrated from https://github.com/dotnet/coreclr/commit/
6025fd00f0c86359817d5b09470120c177e4a124
// [originalThis + offsetOfDelegateInstance]
GenTree* newThisAddr = new (comp, GT_LEA)
- GenTreeAddrMode(TYP_REF, thisExpr, nullptr, 0, comp->eeGetEEInfo()->offsetOfDelegateInstance);
+ GenTreeAddrMode(TYP_BYREF, thisExpr, nullptr, 0, comp->eeGetEEInfo()->offsetOfDelegateInstance);
GenTree* newThis = comp->gtNewOperNode(GT_IND, TYP_REF, newThisAddr);