git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55998 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov 2008-09-09 18:24:07 +00:00
parent 832b2a9cd8
commit 820c83bf6c

View File

@ -260,7 +260,7 @@ const GlobalValue *GlobalAlias::resolveAliasedGlobal(bool traverseWeak) const {
// Iterate over aliasing chain, stopping on weak alias if necessary.
while (const GlobalAlias *GA = dyn_cast<GlobalAlias>(GV)) {
if (traverseWeak && GA->hasWeakLinkage())
if (!traverseWeak && GA->hasWeakLinkage())
break;
GV = GA->getAliasedGlobal();