* Make sure we update nextByte when we decode NEXT_OPCODE in x86 GCinfo
* Update src/coreclr/src/tools/crossgen2/ILCompiler.Reflection.ReadyToRun/x86/InfoHdr.cs
Co-Authored-By: Jan Vorlicek <janvorli@microsoft.com>
Co-authored-by: Jan Vorlicek <janvorli@microsoft.com>
break;
case (byte)InfoHdrAdjust.NEXT_OPCODE:
- encoding = (byte)(image[offset++] & (int)InfoHdrAdjustConstants.ADJ_ENCODING_MAX);
+ nextByte = image[offset++];
+ encoding = (byte)(nextByte & (int)InfoHdrAdjustConstants.ADJ_ENCODING_MAX);
// encoding here always corresponds to codes in InfoHdrAdjust2 set
if (encoding < (int)InfoHdrAdjustConstants.SET_RET_KIND_MAX)