[llvm] [Instrumentation] Remove an unused local variable (NFC) (PR #138383)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Fri May 2 23:43:41 PDT 2025


https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/138383

None

>From 0b87fd24c27c0f1a4aa41b8d58937e7d554d9e05 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Fri, 2 May 2025 23:35:37 -0700
Subject: [PATCH] [Instrumentation] Remove an unused local variable (NFC)

---
 llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
index b1d96db542ad2..034678527950d 100644
--- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
@@ -1938,8 +1938,6 @@ void InstrLowerer::emitVNodes() {
 }
 
 void InstrLowerer::emitNameData() {
-  std::string UncompressedData;
-
   if (ReferencedNames.empty())
     return;
 



More information about the llvm-commits mailing list