projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db139b7
)
Fix warning on MSVC by using size_t arithmetic instead of casting after the fact...
author
Filipe Cabecinhas
<me@filcab.net>
Thu, 28 Jun 2018 12:38:43 +0000
(12:38 +0000)
committer
Filipe Cabecinhas
<me@filcab.net>
Thu, 28 Jun 2018 12:38:43 +0000
(12:38 +0000)
llvm-svn: 335848
lld/COFF/SymbolTable.cpp
patch
|
blob
|
history
diff --git
a/lld/COFF/SymbolTable.cpp
b/lld/COFF/SymbolTable.cpp
index
6b07c35
..
b80a9fd
100644
(file)
--- 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)