projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6dbf9c
)
Remove redundant tmp check (#76154)
author
Rose
<83477269+AtariDreams@users.noreply.github.com>
Sun, 25 Sep 2022 21:58:38 +0000
(17:58 -0400)
committer
GitHub
<noreply@github.com>
Sun, 25 Sep 2022 21:58:38 +0000
(14:58 -0700)
The function has an early return if tmp is ever null, so there is no need to have this check here.
src/coreclr/ilasm/asmman.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/ilasm/asmman.cpp
b/src/coreclr/ilasm/asmman.cpp
index
1a7118e
..
a370656
100644
(file)
--- a/
src/coreclr/ilasm/asmman.cpp
+++ b/
src/coreclr/ilasm/asmman.cpp
@@
-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);
}
//==============================================================================================================