diff options
author | Filipe Cabecinhas <me@filcab.net> | 2018-06-28 12:38:43 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2018-06-28 12:38:43 +0000 |
commit | 02c70438f80d05375e4d8f92e794393db843e851 (patch) | |
tree | 13ed3ffd708c27d616095b0a63f7a632eac7e73f | |
parent | db139b725b098159e1440344b56381aa7d4e94f3 (diff) | |
download | bcm5719-llvm-02c70438f80d05375e4d8f92e794393db843e851.tar.gz bcm5719-llvm-02c70438f80d05375e4d8f92e794393db843e851.zip |
Fix warning on MSVC by using size_t arithmetic instead of casting after the fact. NFC
llvm-svn: 335848
-rw-r--r-- | lld/COFF/SymbolTable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |