Skip to content

Commit

Permalink
[flang] Fix compilation error due to variable no being used (#75210)
Browse files Browse the repository at this point in the history
My builds were failing because the variable 'dim' was not used. This
produced a warning, and my builds have warnings set as errors.
  • Loading branch information
psteinfeld committed Dec 12, 2023
1 parent d5c9530 commit 2a1d222
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,6 @@ template <typename NumericalReductionOp>
static mlir::LogicalResult
verifyArrayAndMaskForReductionOp(NumericalReductionOp reductionOp) {
mlir::Value array = reductionOp->getArray();
mlir::Value dim = reductionOp->getDim();
mlir::Value mask = reductionOp->getMask();

fir::SequenceType arrayTy =
Expand Down

0 comments on commit 2a1d222

Please sign in to comment.