[NFCI] Fix set-but-unused warning in GlobalsStream.cpp
authorDávid Bolvanský <david.bolvansky@gmail.com>
Thu, 24 Mar 2022 06:58:11 +0000 (07:58 +0100)
committerDávid Bolvanský <david.bolvansky@gmail.com>
Thu, 24 Mar 2022 07:13:29 +0000 (08:13 +0100)
llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp

index 3b77ba9..7217fe3 100644 (file)
@@ -142,14 +142,12 @@ readGSIHashBuckets(FixedStreamArray<support::ulittle32_t> &HashBuckets,
     return joinErrors(std::move(EC),
                       make_error<RawError>(raw_error_code::corrupt_file,
                                            "Could not read a bitmap."));
-  uint32_t NumBuckets1 = 0;
   uint32_t CompressedBucketIdx = 0;
   for (uint32_t I = 0; I <= IPHR_HASH; ++I) {
     uint8_t WordIdx = I / 32;
     uint8_t BitIdx = I % 32;
     bool IsSet = HashBitmap[WordIdx] & (1U << BitIdx);
     if (IsSet) {
-      ++NumBuckets1;
       BucketMap[I] = CompressedBucketIdx++;
     } else {
       BucketMap[I] = -1;