Skip to content
Merged
Changes from all commits
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: 2 additions & 3 deletions src/coreclr/md/enc/metamodelrw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,16 +309,15 @@ ULONG CMiniMdRW::m_TruncatedEncTables[] =
ULONG CMiniMdRW::GetTableForToken( // Table index, or -1.
mdToken tkn) // Token to find.
{
ULONG ixTbl; // Loop control.
ULONG type = TypeFromToken(tkn);

// Get the type -- if a string, no associated table.
if (type >= mdtString)
return (ULONG) -1;
// Table number is same as high-byte of token.
ixTbl = type >> 24;
ULONG ixTbl = type >> 24;
// Make sure.
_ASSERTE(g_TblIndex[ixTbl].m_Token == type);
_ASSERTE(ixTbl < TBL_COUNT);

return ixTbl;
} // CMiniMdRW::GetTableForToken
Expand Down