Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 12fe7a2

Browse files
Buyduckjanvorli
authored andcommitted
* fixed class size calculation (#10916)
1 parent cb37183 commit 12fe7a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vm/gdbjit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ ClassTypeInfo::ClassTypeInfo(TypeHandle typeHandle, int num_members, FunctionMem
10951095
{
10961096
case ELEMENT_TYPE_VALUETYPE:
10971097
case ELEMENT_TYPE_CLASS:
1098-
m_type_size = pMT->IsValueType() ? typeHandle.GetSize() : typeHandle.AsMethodTable()->GetClass()->GetSize();
1098+
m_type_size = pMT->IsValueType() ? typeHandle.GetSize() : typeHandle.AsMethodTable()->GetBaseSize();
10991099
break;
11001100
case ELEMENT_TYPE_ARRAY:
11011101
case ELEMENT_TYPE_SZARRAY:

0 commit comments

Comments
 (0)