Simplify. NFC.

llvm-svn: 304328
This commit is contained in:
Rafael Espindola 2017-05-31 19:22:01 +00:00
parent b47c6e5cbd
commit 23db636080
1 changed files with 1 additions and 2 deletions

View File

@ -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()) {