[llvm] 630ea7e - [NFCI] Fix set-but-unused warning in GlobalsStream.cpp
Dávid Bolvanský via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 24 00:13:43 PDT 2022
Author: Dávid Bolvanský
Date: 2022-03-24T08:13:29+01:00
New Revision: 630ea7e58f2318d6187e41c38d08c51ba88e9022
URL: https://github.com/llvm/llvm-project/commit/630ea7e58f2318d6187e41c38d08c51ba88e9022
DIFF: https://github.com/llvm/llvm-project/commit/630ea7e58f2318d6187e41c38d08c51ba88e9022.diff
LOG: [NFCI] Fix set-but-unused warning in GlobalsStream.cpp
Added:
Modified:
llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp
Removed:
################################################################################
diff --git a/llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp b/llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp
index 3b77ba905d257..7217fe38be551 100644
--- a/llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp
+++ b/llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp
@@ -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;
More information about the llvm-commits
mailing list