[llvm] [NFC] LLVM reduce: remove unused variable (PR #133584)
Tim Gymnich via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 29 05:58:12 PDT 2025
https://github.com/tgymnich created https://github.com/llvm/llvm-project/pull/133584
None
>From 778e8d196fa395eecf59d45803132e54813fcb85 Mon Sep 17 00:00:00 2001
From: Tim Gymnich <tgymnich at icloud.com>
Date: Sat, 29 Mar 2025 13:53:43 +0100
Subject: [PATCH] [NFC] remove unused variable
---
llvm/tools/llvm-reduce/deltas/ReduceOperandsToArgs.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceOperandsToArgs.cpp b/llvm/tools/llvm-reduce/deltas/ReduceOperandsToArgs.cpp
index 6b1958e24c932..39302bd09fb49 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceOperandsToArgs.cpp
+++ b/llvm/tools/llvm-reduce/deltas/ReduceOperandsToArgs.cpp
@@ -108,7 +108,7 @@ static void replaceFunctionCalls(Function *OldF, Function *NewF) {
NewCI->setCallingConv(NewF->getCallingConv());
NewCI->setAttributes(CI->getAttributes());
- if (auto *FPOp = dyn_cast<FPMathOperator>(NewCI))
+ if (isa<FPMathOperator>(NewCI))
NewCI->setFastMathFlags(CI->getFastMathFlags());
NewCI->copyMetadata(*CI);
More information about the llvm-commits
mailing list