[llvm] [NFC] Remove unused value (PR #94439)

Jianjian Guan via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 5 01:26:20 PDT 2024


https://github.com/jacquesguan created https://github.com/llvm/llvm-project/pull/94439

None

>From ca6894a5c712b1819c7f1d724d81b9f8cb5d37c5 Mon Sep 17 00:00:00 2001
From: Jianjian GUAN <jacquesguan at me.com>
Date: Tue, 4 Jun 2024 15:16:43 +0800
Subject: [PATCH] [NFC] Remove unused value

---
 llvm/lib/Transforms/Utils/InlineFunction.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index eb471b259c7d4..cfe63496a1007 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -1221,7 +1221,6 @@ static void AddAliasScopeMetadata(CallBase &CB, ValueToValueMapTy &VMap,
       SmallPtrSet<const Value *, 4> ObjSet;
       SmallVector<Metadata *, 4> Scopes, NoAliases;
 
-      SmallSetVector<const Argument *, 4> NAPtrArgs;
       for (const Value *V : PtrArgs) {
         SmallVector<const Value *, 4> Objects;
         getUnderlyingObjects(V, Objects, /* LI = */ nullptr);



More information about the llvm-commits mailing list