Skip to content

[ADT] Fix unused variable from #69528 #114114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

cachemeifyoucan
Copy link
Collaborator

Remove unused variable to fix build failures from bot.

Remove unused variable to fix build failures from bot.
@llvmbot
Copy link
Member

llvmbot commented Oct 29, 2024

@llvm/pr-subscribers-llvm-support

Author: Steven Wu (cachemeifyoucan)

Changes

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 --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;
 }

@cachemeifyoucan cachemeifyoucan merged commit ba8d9ce into llvm:main Oct 29, 2024
7 of 9 checks passed
NoumanAmir657 pushed a commit to NoumanAmir657/llvm-project that referenced this pull request Nov 4, 2024
Remove unused variable to fix build failures from bot.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants