Skip to content

Commit 17c64ff

Browse files
Merge pull request dotnet#6679 from parjong/fix/issue_6569
Revises isSingleFloat32Struct
2 parents f3cef5b + 5e0d476 commit 17c64ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jit/compiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ bool Compiler::isSingleFloat32Struct(CORINFO_CLASS_HANDLE clsHnd)
534534
for (;;)
535535
{
536536
// all of class chain must be of value type and must have only one field
537-
if (!info.compCompHnd->isValueClass(clsHnd) && info.compCompHnd->getClassNumInstanceFields(clsHnd) != 1)
537+
if (!info.compCompHnd->isValueClass(clsHnd) || info.compCompHnd->getClassNumInstanceFields(clsHnd) != 1)
538538
{
539539
return false;
540540
}

0 commit comments

Comments
 (0)