forked from OSchip/llvm-project
Use do-while instead of a magic number. No functionality change.
llvm-svn: 189413
This commit is contained in:
parent
78af0708b7
commit
a372a9b503
|
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue