Replace gtAllocObj. with AsAllocObj()->
authorSinan Kaya <41809318+franksinankaya@users.noreply.github.com>
Mon, 21 Oct 2019 05:02:24 +0000 (01:02 -0400)
committerSergey Andreenko <seandree@microsoft.com>
Mon, 21 Oct 2019 05:02:24 +0000 (22:02 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/12e115790cfd4f5a800442191c3115644522ec0e

src/coreclr/src/jit/gentree.cpp

index 9ed82f1..1bd787c 100644 (file)
@@ -2049,8 +2049,8 @@ AGAIN:
                     break;
                 case GT_ALLOCOBJ:
                     hash = genTreeHashAdd(hash, static_cast<unsigned>(
-                                                    reinterpret_cast<uintptr_t>(tree->gtAllocObj.gtAllocObjClsHnd)));
-                    hash = genTreeHashAdd(hash, tree->gtAllocObj.gtNewHelper);
+                                                    reinterpret_cast<uintptr_t>(tree->AsAllocObj()->gtAllocObjClsHnd)));
+                    hash = genTreeHashAdd(hash, tree->AsAllocObj()->gtNewHelper);
                     break;
                 case GT_RUNTIMELOOKUP:
                     hash = genTreeHashAdd(hash, static_cast<unsigned>(