Skip to content

Commit

Permalink
Remove redundant tmp check (dotnet#76154)
Browse files Browse the repository at this point in the history
The function has an early return if tmp is ever null, so there is no need to have this check here.
  • Loading branch information
AZero13 authored Sep 25, 2022
1 parent c6dbf9c commit f9319be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/ilasm/asmman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ void AsmMan::AddFile(_In_ __nullterminated char* szName, DWORD dwAttr, BinStr
tmp->tkTok = TokenFromRid(m_FileLst.COUNT(),mdtFile);
}
pAsm->m_tkCurrentCVOwner = 0;
if(tmp) pAsm->m_pCustomDescrList = &(tmp->m_CustomDescrList);
pAsm->m_pCustomDescrList = &(tmp->m_CustomDescrList);
}
//==============================================================================================================

Expand Down

0 comments on commit f9319be

Please sign in to comment.