From 02c70438f80d05375e4d8f92e794393db843e851 Mon Sep 17 00:00:00 2001 From: Filipe Cabecinhas Date: Thu, 28 Jun 2018 12:38:43 +0000 Subject: Fix warning on MSVC by using size_t arithmetic instead of casting after the fact. NFC llvm-svn: 335848 --- lld/COFF/SymbolTable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lld/COFF/SymbolTable.cpp') diff --git a/lld/COFF/SymbolTable.cpp b/lld/COFF/SymbolTable.cpp index 6b07c352688..b80a9fd607b 100644 --- a/lld/COFF/SymbolTable.cpp +++ b/lld/COFF/SymbolTable.cpp @@ -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) -- cgit v1.2.1