From 24e7ab42ae7adeff731a332b90bdfb9da14ed118 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Fri, 29 Dec 2023 06:49:26 -0800 Subject: [PATCH] Fix copy&paste bug in ReadyToRun_TypeGenericInfoMap::HasConstraints Fixes #96336 --- src/coreclr/vm/readytoruninfo.cpp | 2 +- src/tests/issues.targets | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/coreclr/vm/readytoruninfo.cpp b/src/coreclr/vm/readytoruninfo.cpp index e75373db8855aa..fbf49abe88a8ee 100644 --- a/src/coreclr/vm/readytoruninfo.cpp +++ b/src/coreclr/vm/readytoruninfo.cpp @@ -1945,7 +1945,7 @@ bool ReadyToRun_TypeGenericInfoMap::HasVariance(mdTypeDef input, bool *foundResu bool ReadyToRun_TypeGenericInfoMap::HasConstraints(mdTypeDef input, bool *foundResult) const { ReadyToRunTypeGenericInfo typeGenericInfo = GetTypeGenericInfo(input, foundResult); - return !!((uint8_t)typeGenericInfo & (uint8_t)ReadyToRunTypeGenericInfo::HasVariance); + return !!((uint8_t)typeGenericInfo & (uint8_t)ReadyToRunTypeGenericInfo::HasConstraints); } bool ReadyToRun_MethodIsGenericMap::IsGeneric(mdMethodDef input, bool *foundResult) const diff --git a/src/tests/issues.targets b/src/tests/issues.targets index 521783871076c5..da5777284382c6 100644 --- a/src/tests/issues.targets +++ b/src/tests/issues.targets @@ -657,12 +657,6 @@ https://github.com/dotnet/runtime/issues/38096 - - https://github.com/dotnet/runtime/issues/96336 - - - https://github.com/dotnet/runtime/issues/96336 - Not compatible with crossgen2