[llvm] r343953 - Fix a -Wsign-compare warning.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 7 21:44:12 PDT 2018


Author: zturner
Date: Sun Oct  7 21:44:12 2018
New Revision: 343953

URL: http://llvm.org/viewvc/llvm-project?rev=343953&view=rev
Log:
Fix a -Wsign-compare warning.

Modified:
    llvm/trunk/lib/DebugInfo/PDB/Native/GlobalsStream.cpp

Modified: llvm/trunk/lib/DebugInfo/PDB/Native/GlobalsStream.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/Native/GlobalsStream.cpp?rev=343953&r1=343952&r2=343953&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/Native/GlobalsStream.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/Native/GlobalsStream.cpp Sun Oct  7 21:44:12 2018
@@ -52,7 +52,7 @@ GlobalsStream::findRecordsByName(StringR
 
   // Hash the name to figure out which bucket this goes into.
   size_t ExpandedBucketIndex = hashStringV1(Name) % IPHR_HASH;
-  uint32_t CompressedBucketIndex = GlobalsTable.BucketMap[ExpandedBucketIndex];
+  int32_t CompressedBucketIndex = GlobalsTable.BucketMap[ExpandedBucketIndex];
   if (CompressedBucketIndex == -1)
     return Result;
 




More information about the llvm-commits mailing list