From c75fc17210790ab0bac897f90d89facb99032dfa Mon Sep 17 00:00:00 2001 From: Tim Gymnich 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(NewCI)) - FPOp->setFastMathFlags(CI->getFastMathFlags()); + NewCI->setFastMathFlags(CI->getFastMathFlags()); NewCI->copyMetadata(*CI);