[lld] r297063 - Fix -Werror build error.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 6 12:27:38 PST 2017
Author: eugenis
Date: Mon Mar 6 14:27:38 2017
New Revision: 297063
URL: http://llvm.org/viewvc/llvm-project?rev=297063&view=rev
Log:
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)
Modified:
lld/trunk/ELF/Symbols.cpp
Modified: lld/trunk/ELF/Symbols.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.cpp?rev=297063&r1=297062&r2=297063&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.cpp (original)
+++ lld/trunk/ELF/Symbols.cpp Mon Mar 6 14:27:38 2017
@@ -212,7 +212,7 @@ const OutputSection *SymbolBody::getOutp
return nullptr;
}
- if (auto *S = dyn_cast<SharedSymbol>(this))
+ if (isa<SharedSymbol>(this))
return nullptr;
if (isa<DefinedCommon>(this)) {
More information about the llvm-commits
mailing list