llvm-svn: 55998
This commit is contained in:
Anton Korobeynikov 2008-09-09 18:24:07 +00:00
parent ac2c655808
commit 4e518041d3
1 changed files with 1 additions and 1 deletions
llvm/lib/VMCore

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();