Skip to content
Merged
Changes from 1 commit
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
5 changes: 3 additions & 2 deletions src/coreclr/vm/comutilnative.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,10 @@ extern "C" void QCALLTYPE ExceptionNative_GetMethodFromStackTrace(QCall::ObjectH
// The stacktrace can be either sbyte[] or Object[]. In the latter case,
// the first entry is the actual stack trace sbyte[], the rest are pointers
// to the method info objects. We only care about the first entry here.
if (arrayBaseRef->GetArrayElementType() != ELEMENT_TYPE_I1)
CorElementType elemType = arrayBaseRef->GetArrayElementType();
if (elemType != ELEMENT_TYPE_I1)
{
_ASSERTE(arrayBaseRef->GetArrayElementType() == ELEMENT_TYPE_OBJECT);
_ASSERTE(elemType == ELEMENT_TYPE_OBJECT || elemType == ELEMENT_TYPE_CLASS);
PTRARRAYREF ptrArrayRef = (PTRARRAYREF)arrayBaseRef;
arrayBaseRef = (ARRAYBASEREF)OBJECTREFToObject(ptrArrayRef->GetAt(0));
}
Expand Down