From 5fd43c30f3610700f4f7e5f645f6b5b15ab68416 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Mon, 1 Jan 2024 08:55:12 -0800 Subject: [PATCH] Fix copy&paste bug in ReadyToRun_TypeGenericInfoMap::HasConstraints (#96358) 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 e75373db8855a..fbf49abe88a8e 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 521783871076c..da5777284382c 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