[llvm] [ADT] Fix unused variable from #69528 (PR #114114)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 29 11:57:34 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-support
Author: Steven Wu (cachemeifyoucan)
<details>
<summary>Changes</summary>
Remove unused variable to fix build failures from bot.
---
Full diff: https://github.com/llvm/llvm-project/pull/114114.diff
1 Files Affected:
- (modified) llvm/lib/Support/TrieRawHashMap.cpp (+1-1)
``````````diff
diff --git a/llvm/lib/Support/TrieRawHashMap.cpp b/llvm/lib/Support/TrieRawHashMap.cpp
index 9eeac0bbc5c2c3..4741f3d4db0490 100644
--- a/llvm/lib/Support/TrieRawHashMap.cpp
+++ b/llvm/lib/Support/TrieRawHashMap.cpp
@@ -424,7 +424,7 @@ unsigned ThreadSafeTrieRawHashMapBase::getNumSlotUsed(
return 0;
unsigned Num = 0;
for (unsigned I = 0, E = S->size(); I < E; ++I)
- if (auto *E = S->load(I))
+ if (S->load(I))
++Num;
return Num;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/114114
More information about the llvm-commits
mailing list