mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Always run 'make check' :) Fix fallout from prev. commit: query for possible
alias destination only if we don't have anything to link to git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48181 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1438b9dd82
commit
aeb09967fd
@ -474,7 +474,7 @@ static bool LinkGlobals(Module *Dest, const Module *Src,
|
||||
}
|
||||
|
||||
// Check to see if may have to link the global with the alias
|
||||
if (SGV->hasName() && !SGV->hasInternalLinkage()) {
|
||||
if (!DGV && SGV->hasName() && !SGV->hasInternalLinkage()) {
|
||||
DGV = Dest->getNamedAlias(SGV->getName());
|
||||
if (DGV && DGV->getType() != SGV->getType())
|
||||
// If types don't agree due to opaque types, try to resolve them.
|
||||
|
Loading…
x
Reference in New Issue
Block a user