Merge pull request dotnet/corert#7397 from dotnet-bot/from-tfs
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Mon, 6 May 2019 11:16:10 +0000 (13:16 +0200)
committerAnirudh Agnihotry <anirudhagnihotry098@gmail.com>
Mon, 15 Jul 2019 20:52:34 +0000 (13:52 -0700)
Merge changes from TFS

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
src/System.Private.CoreLib/shared/System/Numerics/Vector.cs
src/System.Private.CoreLib/shared/System/Numerics/Vector.tt

index b49d8b1..8afa109 100644 (file)
@@ -61,7 +61,13 @@ namespace System.Numerics
             get
             {
                 ThrowHelper.ThrowForUnsupportedVectorBaseType<T>();
+#if PROJECTN
+                // Hits an active bug in ProjectN (887908). This code path is actually only used rarely,
+                // since get_Count is an intrinsic.
+                throw new NotImplementedException();
+#else
                 return Unsafe.SizeOf<Vector<T>>() / Unsafe.SizeOf<T>();
+#endif
             }
         }
 
index ed2b606..4682494 100644 (file)
@@ -65,7 +65,13 @@ namespace System.Numerics
             get
             {
                 ThrowHelper.ThrowForUnsupportedVectorBaseType<T>();
+#if PROJECTN
+                // Hits an active bug in ProjectN (887908). This code path is actually only used rarely,
+                // since get_Count is an intrinsic.
+                throw new NotImplementedException();
+#else
                 return Unsafe.SizeOf<Vector<T>>() / Unsafe.SizeOf<T>();
+#endif
             }
         }