Skip to content

Conversation

@kazutakahirata
Copy link
Contributor

Identified with bugprone-unused-local-non-trivial-variable.

Identified with bugprone-unused-local-non-trivial-variable.
@llvmbot
Copy link
Member

llvmbot commented Nov 22, 2025

@llvm/pr-subscribers-llvm-transforms
@llvm/pr-subscribers-tablegen

@llvm/pr-subscribers-debuginfo

Author: Kazu Hirata (kazutakahirata)

Changes

Identified with bugprone-unused-local-non-trivial-variable.


Full diff: https://github.com/llvm/llvm-project/pull/169171.diff

2 Files Affected:

  • (modified) llvm/lib/Transforms/Utils/DebugSSAUpdater.cpp (-1)
  • (modified) llvm/utils/TableGen/Basic/TargetLibraryInfoEmitter.cpp (-1)
diff --git a/llvm/lib/Transforms/Utils/DebugSSAUpdater.cpp b/llvm/lib/Transforms/Utils/DebugSSAUpdater.cpp
index c0e7609176a83..cceabd891d72c 100644
--- a/llvm/lib/Transforms/Utils/DebugSSAUpdater.cpp
+++ b/llvm/lib/Transforms/Utils/DebugSSAUpdater.cpp
@@ -291,7 +291,6 @@ void DbgValueRangeTable::addVariable(Function *F, DebugVariableAggregate DVA) {
 
   // We don't have a single location for the variable's entire scope, so instead
   // we must now perform a liveness analysis to create a location list.
-  DenseMap<BasicBlock *, DbgValueDef> LiveInMap;
   SmallVector<DbgSSAPhi *> HypotheticalPHIs;
   DebugSSAUpdater SSAUpdater(&HypotheticalPHIs);
   SSAUpdater.initialize();
diff --git a/llvm/utils/TableGen/Basic/TargetLibraryInfoEmitter.cpp b/llvm/utils/TableGen/Basic/TargetLibraryInfoEmitter.cpp
index f7364e0298d89..253d9df44421a 100644
--- a/llvm/utils/TableGen/Basic/TargetLibraryInfoEmitter.cpp
+++ b/llvm/utils/TableGen/Basic/TargetLibraryInfoEmitter.cpp
@@ -146,7 +146,6 @@ void TargetLibraryInfoEmitter::emitTargetLibraryInfoSignatureTable(
     }
     return Sig;
   };
-  DenseMap<unsigned, Signature> SignatureMap;
   Signature NoFuncSig({StringRef("Void")});
   SignatureTable.add(NoFuncSig);
   for (const auto *R : AllTargetLibcalls)

@kazutakahirata kazutakahirata merged commit 9de880e into llvm:main Nov 22, 2025
14 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_20251122_clang_tidy_bugprone-unused-local-non-trivial-variable_llvm branch November 22, 2025 23:32
aadeshps-mcw pushed a commit to aadeshps-mcw/llvm-project that referenced this pull request Nov 26, 2025
Identified with bugprone-unused-local-non-trivial-variable.
Priyanshu3820 pushed a commit to Priyanshu3820/llvm-project that referenced this pull request Nov 26, 2025
Identified with bugprone-unused-local-non-trivial-variable.
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.

3 participants