[llvm] Revert "[NFC] LLVM reduce: remove unused variable" (PR #133586)
Tim Gymnich via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 29 06:59:52 PDT 2025
https://github.com/tgymnich created https://github.com/llvm/llvm-project/pull/133586
Reverts llvm/llvm-project#133584
>From c75fc17210790ab0bac897f90d89facb99032dfa Mon Sep 17 00:00:00 2001
From: Tim Gymnich <tim at gymni.ch>
Date: Sat, 29 Mar 2025 14:59:42 +0100
Subject: [PATCH] Revert "[NFC] LLVM reduce: fix unused variable (#133584)"
This reverts commit 9451617d563d3b0f43d86b25fd1b6a6528d0afc2.
---
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 85a9cac124c0e..6b1958e24c932 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))
- FPOp->setFastMathFlags(CI->getFastMathFlags());
+ NewCI->setFastMathFlags(CI->getFastMathFlags());
NewCI->copyMetadata(*CI);
More information about the llvm-commits
mailing list