[flang-commits] [flang] 606bb80 - [flang][openacc][NFC] Remove set but not used variable

Valentin Clement via flang-commits flang-commits at lists.llvm.org
Wed Aug 9 10:36:10 PDT 2023


Author: Valentin Clement
Date: 2023-08-09T10:36:02-07:00
New Revision: 606bb8080ee7904d9ee6d6c3547f1e39c928e40e

URL: https://github.com/llvm/llvm-project/commit/606bb8080ee7904d9ee6d6c3547f1e39c928e40e
DIFF: https://github.com/llvm/llvm-project/commit/606bb8080ee7904d9ee6d6c3547f1e39c928e40e.diff

LOG: [flang][openacc][NFC] Remove set but not used variable

Added: 
    

Modified: 
    flang/lib/Lower/OpenACC.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Lower/OpenACC.cpp b/flang/lib/Lower/OpenACC.cpp
index 5e14f9cc53ec52..a001385c563e53 100644
--- a/flang/lib/Lower/OpenACC.cpp
+++ b/flang/lib/Lower/OpenACC.cpp
@@ -2386,8 +2386,7 @@ static void createRegisterFunc(mlir::OpBuilder &modBuilder,
           mlir::acc::DataClause::acc_update_device, addrOp.getType());
   llvm::SmallVector<int32_t> operandSegments{0, 0, 0, 0, 0, 1};
   llvm::SmallVector<mlir::Value> operands{updateDeviceOp.getResult()};
-  mlir::acc::UpdateOp updateOp = createSimpleOp<mlir::acc::UpdateOp>(
-      builder, loc, operands, operandSegments);
+  createSimpleOp<mlir::acc::UpdateOp>(builder, loc, operands, operandSegments);
 
   builder.create<mlir::func::ReturnOp>(loc);
   modBuilder.setInsertionPointAfter(registerFuncOp);


        


More information about the flang-commits mailing list