Skip to content

Commit

Permalink
[ELF] Replace an unneeded dyn_cast_or_null with dyn_cast. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Feb 28, 2022
1 parent fee7896 commit 8d01ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lld/ELF/Writer.cpp
Expand Up @@ -1429,7 +1429,7 @@ template <class ELFT> void Writer<ELFT>::sortSections() {
sortInputSections();

for (SectionCommand *cmd : script->sectionCommands)
if (auto *osec = dyn_cast_or_null<OutputSection>(cmd))
if (auto *osec = dyn_cast<OutputSection>(cmd))
osec->sortRank = getSectionRank(osec);
if (!script->hasSectionsCommand) {
// We know that all the OutputSections are contiguous in this case.
Expand Down

0 comments on commit 8d01ac7

Please sign in to comment.