summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-03-13 04:40:12 +0000
committerRui Ueyama <ruiu@google.com>2016-03-13 04:40:12 +0000
commitcb8fd3ac68288388c8061ae188e9ecd22408ac70 (patch)
tree29815bcd31fcff90e325d27913aa590526fa346e
parent860b13fc02009d4ca9bf62d17a35ec0b34561ae9 (diff)
downloadbcm5719-llvm-cb8fd3ac68288388c8061ae188e9ecd22408ac70.tar.gz
bcm5719-llvm-cb8fd3ac68288388c8061ae188e9ecd22408ac70.zip
Body can never be null in this context.
Because of the recent commit to allocate SymbolBodies for local symbols. llvm-svn: 263364
-rw-r--r--lld/ELF/Writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 7ccd68db7c1..81d8c048299 100644
--- 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)) {
OpenPOWER on IntegriCloud