Skip to content

Commit

Permalink
[flang][openacc][NFC] Remove set but not used variable
Browse files Browse the repository at this point in the history
  • Loading branch information
clementval committed Aug 9, 2023
1 parent 8b37431 commit 606bb80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flang/lib/Lower/OpenACC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 606bb80

Please sign in to comment.