Skip to content

Commit 664eb25

Browse files
authored
Fix output locals in dump (#207)
***NO_CI***
1 parent bc39d41 commit 664eb25

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

MetadataProcessor.Shared/nanoDumperGenerator.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System;
@@ -853,7 +853,14 @@ private string PrintSignatureForLocalVar(Collection<VariableDefinition> variable
853853
}
854854
else if (l.VariableType.IsGenericInstance)
855855
{
856-
sig.Append($"class {l.VariableType.FullName}");
856+
if (l.VariableType.IsValueType)
857+
{
858+
sig.Append($"valuetype {l.VariableType.FullName}");
859+
}
860+
else
861+
{
862+
sig.Append($"class {l.VariableType.FullName}");
863+
}
857864

858865
_tablesContext.TypeSpecificationsTable.TryGetTypeReferenceId(l.VariableType as TypeSpecification, out ushort referenceId);
859866

0 commit comments

Comments
 (0)