[Lldb-commits] [lldb] r323075 - Make loop counter unsigned in SymbolFilePDB::GetCompileUnitIndex

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Sun Jan 21 22:56:09 PST 2018


Author: teemperor
Date: Sun Jan 21 22:56:09 2018
New Revision: 323075

URL: http://llvm.org/viewvc/llvm-project?rev=323075&view=rev
Log:
Make loop counter unsigned in SymbolFilePDB::GetCompileUnitIndex

Summary: This fixes a clang warning.

Reviewers: zturner

Reviewed By: zturner

Subscribers: zturner, lldb-commits

Differential Revision: https://reviews.llvm.org/D42345

Modified:
    lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp

Modified: lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp?rev=323075&r1=323074&r2=323075&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp Sun Jan 21 22:56:09 2018
@@ -211,7 +211,7 @@ void SymbolFilePDB::GetCompileUnitIndex(
   if (!results_up)
     return;
   auto uid = pdb_compiland->getSymIndexId();
-  for (int cu_idx = 0; cu_idx < GetNumCompileUnits(); ++cu_idx) {
+  for (uint32_t cu_idx = 0; cu_idx < GetNumCompileUnits(); ++cu_idx) {
     auto compiland_up = results_up->getChildAtIndex(cu_idx);
     if (!compiland_up)
       continue;




More information about the lldb-commits mailing list