Forgotten gtIntCon (dotnet/coreclr#27330)
authorSinan Kaya <41809318+franksinankaya@users.noreply.github.com>
Mon, 21 Oct 2019 08:30:05 +0000 (04:30 -0400)
committerSergey Andreenko <seandree@microsoft.com>
Mon, 21 Oct 2019 08:30:05 +0000 (01:30 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/6de88d4f5d291269f82e3dd1aa39cee026725dfe

src/coreclr/src/jit/morph.cpp

index 6ebd85dd1d40a5b891df5620a4f4db707197b5ef..085a49fe3e12ec47d8b52fafc01e398001489ac5 100644 (file)
@@ -12354,7 +12354,7 @@ DONE_MORPHING_CHILDREN:
                         // Keep the old ValueNumber for 'tree' as the new expr
                         // will still compute the same value as before
                         tree->SetOper(oper, GenTree::PRESERVE_VN);
-                        cns2->gtIntCon.gtIconVal = 0;
+                        cns2->AsIntCon()->gtIconVal = 0;
 
                         // vnStore is null before the ValueNumber phase has run
                         if (vnStore != nullptr)