Fix warning on MSVC by using size_t arithmetic instead of casting after the fact. NFC

llvm-svn: 335848
This commit is contained in:
Filipe Cabecinhas 2018-06-28 12:38:43 +00:00
parent db139b725b
commit 02c70438f8
1 changed files with 1 additions and 1 deletions

View File

@ -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)