Skip to content

Commit

Permalink
Fixed build with GDBJIT enabled and PREJIT disabled (#33958)
Browse files Browse the repository at this point in the history
This commit fixes build for case, when FEATURE_GDBJIT
is enabled, but FEATURE_PREJIT is disabled.

This solves issue #33956.
  • Loading branch information
0xfk0 authored Mar 23, 2020
1 parent 39df362 commit 14516b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/src/vm/gdbjit.cpp
Original file line number Diff line number Diff line change
@@ -1133,7 +1133,7 @@ ClassTypeInfo::ClassTypeInfo(TypeHandle typeHandle, int num_members, FunctionMem
break;
case ELEMENT_TYPE_ARRAY:
case ELEMENT_TYPE_SZARRAY:
m_type_size = pMT->GetClass()->GetSize();
m_type_size = typeHandle.AsMethodTable()->GetBaseSize();
break;
default:
m_type_size = 0;

0 comments on commit 14516b6

Please sign in to comment.