From 985f47768dcac01683677ba394100b07b38cd5e3 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Wed, 1 Dec 2021 10:34:49 -0500 Subject: [PATCH] Fix use of StringBuilder.AppendFormat in ILCompiler (#62147) --- src/coreclr/tools/aot/ILCompiler.Reflection.ReadyToRun/PgoInfoKey.cs | 4 ++-- .../tools/aot/ILCompiler.Reflection.ReadyToRun/ReadyToRunMethod.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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(")"); -- 2.7.4