Skip to content

Commit b90bfe4

Browse files
committed
fixes
1 parent d238063 commit b90bfe4

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/GenericCache.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ private static ref Entry Element(Entry[] table, int index)
141141
[MethodImpl(MethodImplOptions.AggressiveInlining)]
142142
internal bool TryGet(TKey key, out TValue? value)
143143
{
144-
// table is always initialized and is not null.
145144
Entry[] table = _table;
146145
int hash = key.GetHashCode();
147146
int index = HashToBucket(table, hash);

src/tools/illink/src/ILLink.Shared/DataFlow/ForwardDataFlowAnalysis.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ public void Fixpoint(TControlFlowGraph cfg, TTransfer transfer)
408408
// Filters can't contain try/catch/filters.
409409
Debug.Assert(enclosingTryOrCatch.Kind != RegionKind.Filter);
410410
Box<TValue> tryOrCatchExceptionState = cfgState.GetExceptionState(enclosingTryOrCatch);
411-
tryOrCatchExceptionState.Value = lattice.Meet(tryOrCatchExceptionState.Value, exceptionState.Value);
411+
tryOrCatchExceptionState.Value = lattice.Meet(tryOrCatchExceptionState.Value, exceptionState!.Value);
412412
tryOrCatchOrFilterRegion = enclosingTryOrCatch;
413413
}
414414
}

src/tools/illink/src/ILLink.Shared/MessageFormat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal static class MessageFormat
1111
public static string FormatRequiresAttributeMessageArg(string? message)
1212
{
1313
if (!string.IsNullOrEmpty(message))
14-
return $" {message}{(message.TrimEnd().EndsWith(".") ? "" : ".")}";
14+
return $" {message}{(message!.TrimEnd().EndsWith(".") ? "" : ".")}";
1515

1616
return string.Empty;
1717
}

0 commit comments

Comments
 (0)