From ba73a91491bbd80c69513be011d4bad0bd2db2e4 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Mon, 8 Oct 2018 04:44:12 +0000 Subject: Fix a -Wsign-compare warning. llvm-svn: 343953 --- llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/DebugInfo') diff --git a/llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp b/llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp index 3a4c65ecb58..b8c1feaeb3b 100644 --- a/llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp @@ -52,7 +52,7 @@ GlobalsStream::findRecordsByName(StringRef Name, // 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; -- cgit v1.2.3