summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Archive/Archive.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Archive/Archive.cpp')
-rw-r--r--llvm/lib/Archive/Archive.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Archive/Archive.cpp b/llvm/lib/Archive/Archive.cpp
index 7df5e48f9fa..6c95dbe372e 100644
--- a/llvm/lib/Archive/Archive.cpp
+++ b/llvm/lib/Archive/Archive.cpp
@@ -207,10 +207,8 @@ static void getSymbols(Module*M, std::vector<std::string>& symbols) {
// Loop over aliases
for (Module::alias_iterator AI = M->alias_begin(), AE = M->alias_end();
AI != AE; ++AI) {
- const GlobalValue *Aliased = AI->getAliasedGlobal();
- if (!Aliased->isDeclaration())
- if (AI->hasName())
- symbols.push_back(AI->getName());
+ if (AI->hasName())
+ symbols.push_back(AI->getName());
}
}
OpenPOWER on IntegriCloud