Fix -Werror build error.

tools/lld/ELF/Symbols.cpp:215:13: error: unused variable 'S'
[-Werror,-Wunused-variable]
  if (auto *S = dyn_cast<SharedSymbol>(this)

llvm-svn: 297063
This commit is contained in:
Evgeniy Stepanov 2017-03-06 20:27:38 +00:00
parent 9e60e51a71
commit 5ac5542544
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ const OutputSection *SymbolBody::getOutputSection() const {
return nullptr;
}
if (auto *S = dyn_cast<SharedSymbol>(this))
if (isa<SharedSymbol>(this))
return nullptr;
if (isa<DefinedCommon>(this)) {