[llvm] [NFC] LLVM reduce: remove unused variable (PR #133584)
Tim Gymnich via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 29 06:05:03 PDT 2025
https://github.com/tgymnich updated https://github.com/llvm/llvm-project/pull/133584
>From 60698df196d9525cd41dd7de45a3526400618da5 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..85a9cac124c0e 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceOperandsToArgs.cpp
+++ b/llvm/tools/llvm-reduce/deltas/ReduceOperandsToArgs.cpp
@@ -109,7 +109,7 @@ static void replaceFunctionCalls(Function *OldF, Function *NewF) {
NewCI->setAttributes(CI->getAttributes());
if (auto *FPOp = dyn_cast<FPMathOperator>(NewCI))
- NewCI->setFastMathFlags(CI->getFastMathFlags());
+ FPOp->setFastMathFlags(CI->getFastMathFlags());
NewCI->copyMetadata(*CI);
More information about the llvm-commits
mailing list