[lld] r250457 - Fix style.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 15 13:55:20 PDT 2015
Author: ruiu
Date: Thu Oct 15 15:55:20 2015
New Revision: 250457
URL: http://llvm.org/viewvc/llvm-project?rev=250457&view=rev
Log:
Fix style.
Modified:
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=250457&r1=250456&r2=250457&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu Oct 15 15:55:20 2015
@@ -455,10 +455,9 @@ template <class ELFT> void Writer<ELFT>:
for (auto &P : Symtab.getSymbols()) {
StringRef Name = P.first;
SymbolBody *Body = P.second->Body;
- if (auto *U = dyn_cast<Undefined<ELFT>>(Body)) {
+ if (auto *U = dyn_cast<Undefined<ELFT>>(Body))
if (!U->isWeak() && !U->canKeepUndefined())
reportUndefined<ELFT>(Symtab, *Body);
- }
if (auto *C = dyn_cast<DefinedCommon<ELFT>>(Body))
CommonSymbols.push_back(C);
More information about the llvm-commits
mailing list