forked from OSchip/llvm-project
Fix warning on MSVC by using size_t arithmetic instead of casting after the fact. NFC
llvm-svn: 335848
This commit is contained in:
parent
db139b725b
commit
02c70438f8
|
@ -189,7 +189,7 @@ void SymbolTable::reportRemainingUndefines() {
|
|||
}
|
||||
|
||||
for (ObjFile *File : ObjFile::Instances) {
|
||||
size_t SymIndex = -1ull;
|
||||
size_t SymIndex = size_t{0} - 1;
|
||||
for (Symbol *Sym : File->getSymbols()) {
|
||||
++SymIndex;
|
||||
if (!Sym)
|
||||
|
|
Loading…
Reference in New Issue