Skip to content

Commit 54092d4

Browse files
committed
Remove unreachable call
1 parent 488e251 commit 54092d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/nativeaot/System.Private.CoreLib/src/System/InvokeUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ private static Exception ConvertOrWidenPrimitivesEnumsAndPointersIfPossible(obje
418418
Failure:
419419
Debug.Fail("Unexpected CorElementType: " + dstElementType + ": Not a valid widening target.");
420420
dstObject = null;
421-
return CreateChangeTypeException(srcEEType, dstEEType, semantics);
421+
return null; // This code can never be reached
422422
}
423423

424424
private static bool CanPrimitiveWiden(EETypeElementType destType, EETypeElementType srcType)

0 commit comments

Comments
 (0)