Remove a useless temporary variable.
authorRui Ueyama <ruiu@google.com>
Mon, 24 Apr 2017 23:50:58 +0000 (23:50 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 24 Apr 2017 23:50:58 +0000 (23:50 +0000)
llvm-svn: 301278

lld/ELF/Symbols.cpp

index 86f3162..01caa6d 100644 (file)
@@ -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;