From 046d345e07809a2d2a42dd3a8c676cda2c6b3a56 Mon Sep 17 00:00:00 2001 From: Katelyn Gadd Date: Tue, 20 Feb 2024 18:00:43 -0800 Subject: [PATCH] Restore erroneously removed encoding of the argument count in a generic method instantiation --- src/coreclr/vm/zapsig.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/coreclr/vm/zapsig.cpp b/src/coreclr/vm/zapsig.cpp index bbbab9a51c84d..dfd447f94eaaf 100644 --- a/src/coreclr/vm/zapsig.cpp +++ b/src/coreclr/vm/zapsig.cpp @@ -1350,6 +1350,9 @@ BOOL ZapSig::EncodeMethod( else { Instantiation inst = pMethod->GetMethodInstantiation(); + + pSigBuilder->AppendData(inst.GetNumArgs()); + for (DWORD i = 0; i < inst.GetNumArgs(); i++) { TypeHandle t = inst[i];