[llvm-branch-commits] [llvm] c75fc17 - Revert "[NFC] LLVM reduce: fix unused variable (#133584)"
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Mar 29 06:59:45 PDT 2025
Author: Tim Gymnich
Date: 2025-03-29T14:59:42+01:00
New Revision: c75fc17210790ab0bac897f90d89facb99032dfa
URL: https://github.com/llvm/llvm-project/commit/c75fc17210790ab0bac897f90d89facb99032dfa
DIFF: https://github.com/llvm/llvm-project/commit/c75fc17210790ab0bac897f90d89facb99032dfa.diff
LOG: Revert "[NFC] LLVM reduce: fix unused variable (#133584)"
This reverts commit 9451617d563d3b0f43d86b25fd1b6a6528d0afc2.
Added:
Modified:
llvm/tools/llvm-reduce/deltas/ReduceOperandsToArgs.cpp
Removed:
################################################################################
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-branch-commits
mailing list