Skip to content
Prev Previous commit
Next Next commit
Is this hitting codegen bug?
  • Loading branch information
jkotas committed Jul 17, 2021
commit 0bcb0f1e77e4dd7fe15ec85bc3cb2c7505c5a16e
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;

namespace System.Reflection
Expand Down Expand Up @@ -47,6 +48,7 @@ protected CustomAttributeData()
}

#region Object Override
[MethodImpl(MethodImplOptions.NoOptimization)] // Workaround for codegen bug?
public override string ToString()
{
var vsb = new ValueStringBuilder(stackalloc char[256]);
Expand Down