Use do-while instead of a magic number. No functionality change.

llvm-svn: 189413
This commit is contained in:
Rui Ueyama 2013-08-27 23:10:26 +00:00
parent 78af0708b7
commit a372a9b503
1 changed files with 3 additions and 3 deletions

View File

@ -193,8 +193,8 @@ void Resolver::resolveUndefines() {
_context.searchSharedLibrariesToOverrideTentativeDefinitions();
// keep looping until no more undefines were added in last loop
unsigned int undefineGenCount = 0xFFFFFFFF;
while (undefineGenCount != _symbolTable.size()) {
unsigned int undefineGenCount;
do {
undefineGenCount = _symbolTable.size();
std::vector<const UndefinedAtom *> undefines;
_symbolTable.undefines(undefines);
@ -230,7 +230,7 @@ void Resolver::resolveUndefines() {
}
}
}
}
} while (undefineGenCount != _symbolTable.size());
}