From 02c70438f80d05375e4d8f92e794393db843e851 Mon Sep 17 00:00:00 2001 From: Filipe Cabecinhas Date: Thu, 28 Jun 2018 12:38:43 +0000 Subject: [PATCH] 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(-) diff --git a/lld/COFF/SymbolTable.cpp b/lld/COFF/SymbolTable.cpp index 6b07c35..b80a9fd 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) -- 2.7.4