From 08eae552124dbc2aea2acabdc639f7475cea0f53 Mon Sep 17 00:00:00 2001 From: Simon Nattress Date: Mon, 20 Apr 2020 11:51:26 -0700 Subject: [PATCH] Remove unneeded cast --- src/coreclr/src/tools/Common/JitInterface/CorInfoImpl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/src/tools/Common/JitInterface/CorInfoImpl.cs b/src/coreclr/src/tools/Common/JitInterface/CorInfoImpl.cs index ceacd232b456b..3901cd30a3b42 100644 --- a/src/coreclr/src/tools/Common/JitInterface/CorInfoImpl.cs +++ b/src/coreclr/src/tools/Common/JitInterface/CorInfoImpl.cs @@ -1400,7 +1400,7 @@ private uint getClassSize(CORINFO_CLASS_STRUCT_* cls) if (NeedsTypeLayoutCheck(type)) { ISymbolNode node = _compilation.SymbolNodeFactory.CheckTypeLayout(type); - ((MethodWithGCInfo)_methodCodeNode).Fixups.Add(node); + _methodCodeNode.Fixups.Add(node); } #endif return (uint)classSize.AsInt;