[lld] r335985 - [lld] Address post-commit review of r335848
Filipe Cabecinhas via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 29 08:34:36 PDT 2018
Author: filcab
Date: Fri Jun 29 08:34:36 2018
New Revision: 335985
URL: http://llvm.org/viewvc/llvm-project?rev=335985&view=rev
Log:
[lld] Address post-commit review of r335848
Modified:
lld/trunk/COFF/SymbolTable.cpp
Modified: lld/trunk/COFF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/SymbolTable.cpp?rev=335985&r1=335984&r2=335985&view=diff
==============================================================================
--- lld/trunk/COFF/SymbolTable.cpp (original)
+++ lld/trunk/COFF/SymbolTable.cpp Fri Jun 29 08:34:36 2018
@@ -189,7 +189,7 @@ void SymbolTable::reportRemainingUndefin
}
for (ObjFile *File : ObjFile::Instances) {
- size_t SymIndex = size_t{0} - 1;
+ size_t SymIndex = (size_t)-1;
for (Symbol *Sym : File->getSymbols()) {
++SymIndex;
if (!Sym)
More information about the llvm-commits
mailing list