commit | d6c448244bf01d494c34206272ecf55e14244919 | [log] [tgz] |
---|---|---|
author | Fangrui Song <maskray@google.com> | Fri Jul 26 16:29:15 2019 +0000 |
committer | Fangrui Song <maskray@google.com> | Fri Jul 26 16:29:15 2019 +0000 |
tree | c021d12d7255cf3b565a72eb4d37b0e0a9a5e11d | |
parent | ac4a5c15febcea86891fbb0e8ac09ee29d136684 [diff] [blame] |
[ELF] Simplify with dyn_cast_or_null. NFC llvm-svn: 367126
diff --git a/lld/ELF/Symbols.cpp b/lld/ELF/Symbols.cpp index 2267730..a9bc613 100644 --- a/lld/ELF/Symbols.cpp +++ b/lld/ELF/Symbols.cpp
@@ -560,7 +560,7 @@ 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 &&