[lld] r205597 - SymbolTable::size() returns an unsigned int.
Rui Ueyama
ruiu at google.com
Thu Apr 3 18:22:51 PDT 2014
Author: ruiu
Date: Thu Apr 3 20:22:51 2014
New Revision: 205597
URL: http://llvm.org/viewvc/llvm-project?rev=205597&view=rev
Log:
SymbolTable::size() returns an unsigned int.
It's better to use the same type rather than a fixed width integer type
that may be different from the return type.
Modified:
lld/trunk/lib/Core/Resolver.cpp
Modified: lld/trunk/lib/Core/Resolver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/Resolver.cpp?rev=205597&r1=205596&r2=205597&view=diff
==============================================================================
--- lld/trunk/lib/Core/Resolver.cpp (original)
+++ lld/trunk/lib/Core/Resolver.cpp Thu Apr 3 20:22:51 2014
@@ -71,7 +71,7 @@ void Resolver::handleFile(const File &fi
void Resolver::forEachUndefines(bool searchForOverrides,
UndefCallback callback) {
// Handle normal archives
- int64_t undefineGenCount = 0;
+ unsigned undefineGenCount = 0;
do {
undefineGenCount = _symbolTable.size();
for (const UndefinedAtom *undefAtom : _symbolTable.undefines()) {
More information about the llvm-commits
mailing list