From 7fe3cc73d1ee4bbe81b2a5e8a62667b78a02f7ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Strehovsk=C3=BD?= Date: Mon, 6 May 2019 13:16:10 +0200 Subject: [PATCH] Merge pull request dotnet/corert#7397 from dotnet-bot/from-tfs Merge changes from TFS Signed-off-by: dotnet-bot --- src/System.Private.CoreLib/shared/System/Numerics/Vector.cs | 6 ++++++ src/System.Private.CoreLib/shared/System/Numerics/Vector.tt | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/System.Private.CoreLib/shared/System/Numerics/Vector.cs b/src/System.Private.CoreLib/shared/System/Numerics/Vector.cs index b49d8b1..8afa109 100644 --- a/src/System.Private.CoreLib/shared/System/Numerics/Vector.cs +++ b/src/System.Private.CoreLib/shared/System/Numerics/Vector.cs @@ -61,7 +61,13 @@ namespace System.Numerics get { ThrowHelper.ThrowForUnsupportedVectorBaseType(); +#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>() / Unsafe.SizeOf(); +#endif } } diff --git a/src/System.Private.CoreLib/shared/System/Numerics/Vector.tt b/src/System.Private.CoreLib/shared/System/Numerics/Vector.tt index ed2b606..4682494 100644 --- a/src/System.Private.CoreLib/shared/System/Numerics/Vector.tt +++ b/src/System.Private.CoreLib/shared/System/Numerics/Vector.tt @@ -65,7 +65,13 @@ namespace System.Numerics get { ThrowHelper.ThrowForUnsupportedVectorBaseType(); +#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>() / Unsafe.SizeOf(); +#endif } } -- 2.7.4