[lld] r297063 - Fix -Werror build error.
Rafael Avila de Espindola via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 6 13:58:57 PST 2017
Thanks!
Evgeniy Stepanov via llvm-commits <llvm-commits at lists.llvm.org> writes:
> 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)) {
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list