Fix NativeAOT JIT-EE bug (#87378)
authorMichał Petryka <35800402+MichalPetryka@users.noreply.github.com>
Sun, 11 Jun 2023 16:16:08 +0000 (18:16 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Jun 2023 16:16:08 +0000 (09:16 -0700)
src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs

index 30f0b14..b9c33d2 100644 (file)
@@ -2784,9 +2784,9 @@ namespace Internal.JitInterface
                 result = asCorInfoType(returnType, clsRet);
             }
             else
-#pragma warning disable IDE0059 // Unnecessary assignment of a value
-                clsRet = null;
-#pragma warning restore IDE0059 // Unnecessary assignment of a value
+            {
+                *clsRet = null;
+            }
 
             return result;
         }