1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-svn: 55998
This commit is contained in:
Anton Korobeynikov 2008-09-09 18:24:07 +00:00
parent 3a24741034
commit bcf0165453

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