[llvm] 0bed721 - Revert "[NFC] LLVM reduce: remove unused variable" (#133586)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sat Mar 29 06:59:59 PDT 2025
    
    
  
Author: Tim Gymnich
Date: 2025-03-29T14:59:56+01:00
New Revision: 0bed72160c5f8ee4574d46c2b5f342c4a868d8c4
URL: https://github.com/llvm/llvm-project/commit/0bed72160c5f8ee4574d46c2b5f342c4a868d8c4
DIFF: https://github.com/llvm/llvm-project/commit/0bed72160c5f8ee4574d46c2b5f342c4a868d8c4.diff
LOG: Revert "[NFC] LLVM reduce: remove unused variable" (#133586)
Reverts llvm/llvm-project#133584
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-commits
mailing list