Skip to content

Commit 14516b6

Browse files
authored
Fixed build with GDBJIT enabled and PREJIT disabled (#33958)
This commit fixes build for case, when FEATURE_GDBJIT is enabled, but FEATURE_PREJIT is disabled. This solves issue #33956.
1 parent 39df362 commit 14516b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/coreclr/src/vm/gdbjit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ ClassTypeInfo::ClassTypeInfo(TypeHandle typeHandle, int num_members, FunctionMem
11331133
break;
11341134
case ELEMENT_TYPE_ARRAY:
11351135
case ELEMENT_TYPE_SZARRAY:
1136-
m_type_size = pMT->GetClass()->GetSize();
1136+
m_type_size = typeHandle.AsMethodTable()->GetBaseSize();
11371137
break;
11381138
default:
11391139
m_type_size = 0;

0 commit comments

Comments
 (0)