diff options
author | Duncan Sands <baldrick@free.fr> | 2009-02-17 17:50:04 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-02-17 17:50:04 +0000 |
commit | 7ae5b9e1eb1bf70ffecc34c42d66743d5f029d3a (patch) | |
tree | 64be425583ec99c425fa67bbacaaf71652916bd3 | |
parent | a575871884b247b0946290876ac7d4657b384cf9 (diff) | |
download | llvm-7ae5b9e1eb1bf70ffecc34c42d66743d5f029d3a.tar.gz llvm-7ae5b9e1eb1bf70ffecc34c42d66743d5f029d3a.tar.bz2 llvm-7ae5b9e1eb1bf70ffecc34c42d66743d5f029d3a.tar.xz |
This transform also applies to private linkage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64773 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/IPO/GlobalOpt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp index b60982919e..0ac1e65891 100644 --- a/lib/Transforms/IPO/GlobalOpt.cpp +++ b/lib/Transforms/IPO/GlobalOpt.cpp @@ -2398,11 +2398,11 @@ bool GlobalOpt::ResolveAliases(Module &M) { // @a = alias ... @f // into: // define ... @a(...) - if (!Target->hasInternalLinkage()) + if (!Target->hasLocalLinkage()) continue; // The transform is only useful if the alias does not have internal linkage. - if (J->hasInternalLinkage()) + if (J->hasLocalLinkage()) continue; // Do not perform the transform if multiple aliases potentially target the |