[lld] r198339 - No else after return.
Joerg Sonnenberger
joerg at bec.de
Thu Jan 2 11:30:56 PST 2014
Author: joerg
Date: Thu Jan 2 13:30:56 2014
New Revision: 198339
URL: http://llvm.org/viewvc/llvm-project?rev=198339&view=rev
Log:
No else after return.
Modified:
lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp?rev=198339&r1=198338&r2=198339&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp Thu Jan 2 13:30:56 2014
@@ -307,9 +307,9 @@ public:
if (ref.target() && ref.target()->name() == "__tls_get_addr") {
const_cast<Reference &>(ref).setKindValue(R_X86_64_NONE);
return error_code::success();
- } else
- // Static code doesn't need PLTs.
- const_cast<Reference &>(ref).setKindValue(R_X86_64_PC32);
+ }
+ // Static code doesn't need PLTs.
+ const_cast<Reference &>(ref).setKindValue(R_X86_64_PC32);
// Handle IFUNC.
if (const DefinedAtom *da =
dyn_cast_or_null<const DefinedAtom>(ref.target()))
More information about the llvm-commits
mailing list