diff options
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Numerics/Vector.cs | 6 | ||||
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Numerics/Vector.tt | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Numerics/Vector.cs b/src/System.Private.CoreLib/shared/System/Numerics/Vector.cs index b49d8b1720..8afa109f42 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<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 } } diff --git a/src/System.Private.CoreLib/shared/System/Numerics/Vector.tt b/src/System.Private.CoreLib/shared/System/Numerics/Vector.tt index ed2b606e55..46824941fb 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<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 } } |