Fix opinfo: InlineR should only read 8 bytes (dotnet/coreclr#18801)
authorsunnycase <sunnycase@live.cn>
Thu, 19 Jul 2018 08:05:40 +0000 (16:05 +0800)
committerJan Kotas <jkotas@microsoft.com>
Thu, 19 Jul 2018 08:05:40 +0000 (01:05 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/c7b1a09a2e59c2a46792207e69c60676a9377a34

src/coreclr/src/utilcode/opinfo.cpp

index 60da660..0494155 100644 (file)
@@ -99,7 +99,6 @@ AGAIN:
             break;
         case InlineR: {
             __int64 d = GET_UNALIGNED_VAL64(instrPtr); instrPtr +=8;
-            instrPtr += 8;
             args->r = *((double*) (&d));
             } break;
         case InlineSwitch: