From: Stephen Toub Date: Wed, 1 Dec 2021 15:34:49 +0000 (-0500) Subject: Fix use of StringBuilder.AppendFormat in ILCompiler (#62147) X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~12028 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=985f47768dcac01683677ba394100b07b38cd5e3;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fix use of StringBuilder.AppendFormat in ILCompiler (#62147) --- diff --git a/src/coreclr/tools/aot/ILCompiler.Reflection.ReadyToRun/PgoInfoKey.cs b/src/coreclr/tools/aot/ILCompiler.Reflection.ReadyToRun/PgoInfoKey.cs index 0140521..e25f377 100644 --- a/src/coreclr/tools/aot/ILCompiler.Reflection.ReadyToRun/PgoInfoKey.cs +++ b/src/coreclr/tools/aot/ILCompiler.Reflection.ReadyToRun/PgoInfoKey.cs @@ -111,7 +111,7 @@ namespace ILCompiler.Reflection.ReadyToRun { sb.Append(", "); } - sb.AppendFormat($"{Signature.ParameterTypes[i]}"); + sb.Append($"{Signature.ParameterTypes[i]}"); } sb.Append(")"); @@ -135,4 +135,4 @@ namespace ILCompiler.Reflection.ReadyToRun return key; } } -} \ No newline at end of file +} diff --git a/src/coreclr/tools/aot/ILCompiler.Reflection.ReadyToRun/ReadyToRunMethod.cs b/src/coreclr/tools/aot/ILCompiler.Reflection.ReadyToRun/ReadyToRunMethod.cs index 9032ef2..e1a8b87 100644 --- a/src/coreclr/tools/aot/ILCompiler.Reflection.ReadyToRun/ReadyToRunMethod.cs +++ b/src/coreclr/tools/aot/ILCompiler.Reflection.ReadyToRun/ReadyToRunMethod.cs @@ -465,7 +465,7 @@ namespace ILCompiler.Reflection.ReadyToRun { sb.Append(", "); } - sb.AppendFormat($"{Signature.ParameterTypes[i]}"); + sb.Append($"{Signature.ParameterTypes[i]}"); } sb.Append(")");