Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions src/coreclr/interpreter/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2870,17 +2870,9 @@ static bool DoesValueTypeContainGCRefs(COMP_HANDLE compHnd, CORINFO_CLASS_HANDLE
// getClassGClayout assumes it's given a buffer of exactly this size
unsigned maxGcPtrs = (size + sizeof(void *) - 1) / sizeof(void *);
BYTE *gcLayout = (BYTE *)alloca(maxGcPtrs + 1);
uint32_t numSlots = compHnd->getClassGClayout(clsHnd, gcLayout);
uint32_t numGCRefs = compHnd->getClassGClayout(clsHnd, gcLayout);

for (uint32_t i = 0; i < numSlots; ++i)
{
if (gcLayout[i] != TYPE_GC_NONE)
{
return true;
}
}

return false;
return numGCRefs > 0;
}

void InterpCompiler::ConvertFloatingPointStackEntryToStackType(StackInfo* entry, StackType type)
Expand Down