summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-09-09 20:05:04 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-09-09 20:05:04 +0000
commit1a1140429ee5ca58d9a25aea570940826e478125 (patch)
treeabc276017e04ec02cf4b83ba2f6f5305b0f34c3f /llvm/lib/Linker
parentfac18fe2ee18df098626007137350dfa00c16bab (diff)
downloadbcm5719-llvm-1a1140429ee5ca58d9a25aea570940826e478125.tar.gz
bcm5719-llvm-1a1140429ee5ca58d9a25aea570940826e478125.zip
Make safer variant of alias resolution routine to be default
llvm-svn: 56005
Diffstat (limited to 'llvm/lib/Linker')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index f4ebe6b10c0..b867705fe12 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -1169,7 +1169,7 @@ static bool LinkAppendingVars(Module *M,
static bool ResolveAliases(Module *Dest) {
for (Module::alias_iterator I = Dest->alias_begin(), E = Dest->alias_end();
I != E; ++I)
- if (const GlobalValue *GV = I->resolveAliasedGlobal(/*traverseWeak*/ false))
+ if (const GlobalValue *GV = I->resolveAliasedGlobal())
if (GV != I && !GV->isDeclaration())
I->replaceAllUsesWith(const_cast<GlobalValue*>(GV));
OpenPOWER on IntegriCloud