summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-05-31 19:22:01 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-05-31 19:22:01 +0000
commit23db6360804901e2df536c821c5a9f829e89545d (patch)
tree53804bb106e9d437f0451aa005e3931ab9192e0e
parentb47c6e5cbdad3696ed890e32c36021849a1cba47 (diff)
downloadbcm5719-llvm-23db6360804901e2df536c821c5a9f829e89545d.tar.gz
bcm5719-llvm-23db6360804901e2df536c821c5a9f829e89545d.zip
Simplify. NFC.
llvm-svn: 304328
-rw-r--r--lld/ELF/SyntheticSections.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp
index 304968ad0bc..93e00cda6f2 100644
--- a/lld/ELF/SyntheticSections.cpp
+++ b/lld/ELF/SyntheticSections.cpp
@@ -698,8 +698,7 @@ void MipsGotSection::addEntry(SymbolBody &Sym, int64_t Addend, RelExpr Expr) {
// sections referenced by GOT relocations. Then later in the `finalize`
// method calculate number of "pages" required to cover all saved output
// section and allocate appropriate number of GOT entries.
- auto *DefSym = cast<DefinedRegular>(&Sym);
- PageIndexMap.insert({DefSym->Section->getOutputSection(), 0});
+ PageIndexMap.insert({Sym.getOutputSection(), 0});
return;
}
if (Sym.isTls()) {
OpenPOWER on IntegriCloud