[ELF] Simplify with dyn_cast_or_null. NFC

llvm-svn: 367126
This commit is contained in:
Fangrui Song 2019-07-26 16:29:15 +00:00
parent ac4a5c15fe
commit d6c448244b
1 changed files with 1 additions and 1 deletions

View File

@ -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 &&