Skip to content

Commit aaadc26

Browse files
authored
Remove redundant assert
1 parent bdcf654 commit aaadc26

File tree

1 file changed

+0
-3
lines changed
  • src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices

1 file changed

+0
-3
lines changed

src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/CastHelpers.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -669,10 +669,7 @@ internal static void Unbox_Nullable(ref byte destPtr, MethodTable* typeMT, objec
669669
[DebuggerHidden]
670670
internal static object? ReboxFromNullable(MethodTable* srcMT, object src)
671671
{
672-
Debug.Assert(srcMT->IsNullable);
673-
674672
ref byte nullableData = ref src.GetRawData();
675-
676673
return BoxNullableImpl(srcMT, ref nullableData);
677674
}
678675

0 commit comments

Comments
 (0)