forked from OSchip/llvm-project
[ELF] Simplify with dyn_cast_or_null. NFC
llvm-svn: 367126
This commit is contained in:
parent
ac4a5c15fe
commit
d6c448244b
|
@ -560,7 +560,7 @@ int Symbol::compare(const Symbol *other) const {
|
|||
auto *oldSym = cast<Defined>(this);
|
||||
auto *newSym = cast<Defined>(other);
|
||||
|
||||
if (other->file && isa<BitcodeFile>(other->file))
|
||||
if (dyn_cast_or_null<BitcodeFile>(other->file))
|
||||
return 0;
|
||||
|
||||
if (!oldSym->section && !newSym->section && oldSym->value == newSym->value &&
|
||||
|
|
Loading…
Reference in New Issue