diff options
Diffstat (limited to 'src/ILCompiler.MetadataTransform/src/ILCompiler/Metadata/Transform.CustomAttribute.cs')
-rw-r--r-- | src/ILCompiler.MetadataTransform/src/ILCompiler/Metadata/Transform.CustomAttribute.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ILCompiler.MetadataTransform/src/ILCompiler/Metadata/Transform.CustomAttribute.cs b/src/ILCompiler.MetadataTransform/src/ILCompiler/Metadata/Transform.CustomAttribute.cs index ecf9532e7..31f61c5e8 100644 --- a/src/ILCompiler.MetadataTransform/src/ILCompiler/Metadata/Transform.CustomAttribute.cs +++ b/src/ILCompiler.MetadataTransform/src/ILCompiler/Metadata/Transform.CustomAttribute.cs @@ -117,14 +117,14 @@ namespace ILCompiler.Metadata return new ConstantUInt64Value { Value = (ulong)value }; } - if (type.IsString) + if (value == null) { - return HandleString((string)value); + return new ConstantReferenceValue(); } - if (value == null) + if (type.IsString) { - return new ConstantReferenceValue(); + return HandleString((string)value); } if (type.IsSzArray) |