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:
860b13f
)
Body can never be null in this context.
author
Rui Ueyama
<ruiu@google.com>
Sun, 13 Mar 2016 04:40:12 +0000
(
04:40
+0000)
committer
Rui Ueyama
<ruiu@google.com>
Sun, 13 Mar 2016 04:40:12 +0000
(
04:40
+0000)
Because of the recent commit to allocate SymbolBodies for local symbols.
llvm-svn: 263364
lld/ELF/Writer.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/Writer.cpp
b/lld/ELF/Writer.cpp
index
7ccd68d
..
81d8c04
100644
(file)
--- a/
lld/ELF/Writer.cpp
+++ b/
lld/ELF/Writer.cpp
@@
-352,7
+352,7
@@
void Writer<ELFT>::scanRelocs(
// If a symbol in a DSO is referenced directly instead of through GOT,
// we need to create a copy relocation for the symbol.
- if (auto *B = dyn_cast
_or_null
<SharedSymbol<ELFT>>(&Body)) {
+ if (auto *B = dyn_cast<SharedSymbol<ELFT>>(&Body)) {
if (B->needsCopy())
continue;
if (Target->needsCopyRel<ELFT>(Type, *B)) {