projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac4a5c1
)
[ELF] Simplify with dyn_cast_or_null. NFC
author
Fangrui Song
<maskray@google.com>
Fri, 26 Jul 2019 16:29:15 +0000
(16:29 +0000)
committer
Fangrui Song
<maskray@google.com>
Fri, 26 Jul 2019 16:29:15 +0000
(16:29 +0000)
llvm-svn: 367126
lld/ELF/Symbols.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/Symbols.cpp
b/lld/ELF/Symbols.cpp
index
2267730
..
a9bc613
100644
(file)
--- a/
lld/ELF/Symbols.cpp
+++ b/
lld/ELF/Symbols.cpp
@@
-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 &&