mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 03:58:16 +00:00
This transform also applies to private linkage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64773 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a575871884
commit
7ae5b9e1eb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user