Move throw out of inlined CompositeFormat helper (#82543)
authorStephen Toub <stoub@microsoft.com>
Thu, 2 Mar 2023 16:56:53 +0000 (11:56 -0500)
committerGitHub <noreply@github.com>
Thu, 2 Mar 2023 16:56:53 +0000 (11:56 -0500)
commit37750b0ec5a9de125779eb7c316eb2ecb9f4b287
tree4f256b56bb6ee931787a074255139e09da49df60
parent4da32cd409996302b6e522c66cedc6b8a8f952af
Move throw out of inlined CompositeFormat helper (#82543)

Either this helper isn't getting inlined because of the throw, or it's getting inlined and increasing the size of all call sites where it is.
src/libraries/System.Private.CoreLib/src/System/Text/CompositeFormat.cs
src/libraries/System.Private.CoreLib/src/System/Text/StringBuilder.cs
src/libraries/System.Private.CoreLib/src/System/Text/ValueStringBuilder.AppendFormat.cs
src/libraries/System.Private.CoreLib/src/System/ThrowHelper.cs