From b7da1fecae378b52cecbdc8952fabe3b9609040b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Tue, 12 Nov 2024 22:46:05 +0100 Subject: [PATCH] Fix message when no DAM members match (#109717) `memberTypesFromAttribute` is typed as `int` so the ToString gives us a number instead of enum name. Noticed by accident. --- .../DynamicDependencyAttributesOnEntityNode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/DynamicDependencyAttributesOnEntityNode.cs b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/DynamicDependencyAttributesOnEntityNode.cs index 7eb0cb4981539..3e46d482b5f6a 100644 --- a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/DynamicDependencyAttributesOnEntityNode.cs +++ b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/DynamicDependencyAttributesOnEntityNode.cs @@ -204,7 +204,7 @@ static MetadataType Linkerify(TypeDesc type) metadataManager.Logger.LogWarning( new MessageOrigin(entity), DiagnosticId.NoMembersResolvedForMemberSignatureOrType, - memberTypesFromAttribute.ToString(), + ((DynamicallyAccessedMemberTypes)memberTypesFromAttribute).ToString(), targetType.GetDisplayName()); return; }