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:
Duncan Sands 2009-02-17 17:50:04 +00:00
parent a575871884
commit 7ae5b9e1eb

View File

@ -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