[lld] r301278 - Remove a useless temporary variable.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 24 16:50:58 PDT 2017
Author: ruiu
Date: Mon Apr 24 18:50:58 2017
New Revision: 301278
URL: http://llvm.org/viewvc/llvm-project?rev=301278&view=rev
Log:
Remove a useless temporary variable.
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=301278&r1=301277&r2=301278&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.cpp (original)
+++ lld/trunk/ELF/Symbols.cpp Mon Apr 24 18:50:58 2017
@@ -339,8 +339,7 @@ uint8_t Symbol::computeBinding() const {
return Binding;
if (Visibility != STV_DEFAULT && Visibility != STV_PROTECTED)
return STB_LOCAL;
- const SymbolBody *Body = body();
- if (VersionId == VER_NDX_LOCAL && Body->isInCurrentDSO())
+ if (VersionId == VER_NDX_LOCAL && body()->isInCurrentDSO())
return STB_LOCAL;
if (Config->NoGnuUnique && Binding == STB_GNU_UNIQUE)
return STB_GLOBAL;
More information about the llvm-commits
mailing list