Make loop counter unsigned in SymbolFilePDB::GetCompileUnitIndex
authorRaphael Isemann <teemperor@gmail.com>
Mon, 22 Jan 2018 06:56:09 +0000 (06:56 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Mon, 22 Jan 2018 06:56:09 +0000 (06:56 +0000)
Summary: This fixes a clang warning.

Reviewers: zturner

Reviewed By: zturner

Subscribers: zturner, lldb-commits

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

llvm-svn: 323075

lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp

index 24e7e62..d008292 100644 (file)
@@ -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;