summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Writer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/Writer.cpp')
-rw-r--r--lld/ELF/Writer.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 11c15a3990f..a3c59d45261 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -229,11 +229,10 @@ template <class ELFT> void elf::writeResult() {
Out<ELFT>::Pool.clear();
}
-template <class ELFT>
-static std::vector<DefinedCommon<ELFT> *> getCommonSymbols() {
- std::vector<DefinedCommon<ELFT> *> V;
+template <class ELFT> static std::vector<DefinedCommon *> getCommonSymbols() {
+ std::vector<DefinedCommon *> V;
for (Symbol *S : Symtab<ELFT>::X->getSymbols())
- if (auto *B = dyn_cast<DefinedCommon<ELFT>>(S->body()))
+ if (auto *B = dyn_cast<DefinedCommon>(S->body()))
V.push_back(B);
return V;
}
OpenPOWER on IntegriCloud