summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2018-06-28 12:38:43 +0000
committerFilipe Cabecinhas <me@filcab.net>2018-06-28 12:38:43 +0000
commit02c70438f80d05375e4d8f92e794393db843e851 (patch)
tree13ed3ffd708c27d616095b0a63f7a632eac7e73f
parentdb139b725b098159e1440344b56381aa7d4e94f3 (diff)
downloadbcm5719-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.cpp2
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)
OpenPOWER on IntegriCloud