Add quotes around method.Name for crossgen2 replay instruction. (#51453)
authorSergey Andreenko <seandree@microsoft.com>
Mon, 19 Apr 2021 20:34:19 +0000 (13:34 -0700)
committerGitHub <noreply@github.com>
Mon, 19 Apr 2021 20:34:19 +0000 (13:34 -0700)
src/coreclr/tools/aot/crossgen2/Program.cs

index 1a13309..aad491a 100644 (file)
@@ -749,7 +749,7 @@ namespace ILCompiler
             var formatter = new CustomAttributeTypeNameFormatter((IAssemblyDesc)method.Context.SystemModule);
 
             sb.Append($"--singlemethodtypename \"{formatter.FormatName(method.OwningType, true)}\"");
-            sb.Append($" --singlemethodname {method.Name}");
+            sb.Append($" --singlemethodname \"{method.Name}\"");
             {
                 int curIndex = 0;
                 foreach (var searchMethod in method.OwningType.GetMethods())