From: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 18 Aug 2021 19:37:06 +0000 (-0400) Subject: Fix Debug.Assert use of string interpolation (#57667) X-Git-Tag: accepted/tizen/unified/20220110.054933~299 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c015ecbd0aa9307830e53ceb7690bf527a9ab96;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fix Debug.Assert use of string interpolation (#57667) Co-authored-by: Stephen Toub --- diff --git a/src/coreclr/tools/Common/JitInterface/SystemVStructClassificator.cs b/src/coreclr/tools/Common/JitInterface/SystemVStructClassificator.cs index 55b8e2d..c4105d1 100644 --- a/src/coreclr/tools/Common/JitInterface/SystemVStructClassificator.cs +++ b/src/coreclr/tools/Common/JitInterface/SystemVStructClassificator.cs @@ -158,7 +158,7 @@ namespace Internal.JitInterface case TypeFlags.GenericParameter: case TypeFlags.SignatureTypeVariable: case TypeFlags.SignatureMethodVariable: - Debug.Assert(false, $"Type {typeDesc} with unexpected category {typeDesc.Category}"); + Debug.Fail($"Type {typeDesc} with unexpected category {typeDesc.Category}"); return SystemVClassificationTypeUnknown; default: return SystemVClassificationTypeUnknown;