Delete unused variable.

llvm-svn: 330978
This commit is contained in:
Rafael Espindola 2018-04-26 19:21:07 +00:00
parent 65c9e3dd17
commit 40f46bc3e6
1 changed files with 1 additions and 1 deletions

View File

@ -1110,7 +1110,7 @@ ExprValue LinkerScript::getSymbolValue(StringRef Name, const Twine &Loc) {
if (Symbol *Sym = Symtab->find(Name)) {
if (auto *DS = dyn_cast<Defined>(Sym))
return {DS->Section, false, DS->Value, Loc};
if (auto *SS = dyn_cast<SharedSymbol>(Sym))
if (isa<SharedSymbol>(Sym))
if (!ErrorOnMissingSection)
return {nullptr, false, 0, Loc};
}