Skip to content

Commit 2a1d222

Browse files
authored
[flang] Fix compilation error due to variable no being used (#75210)
My builds were failing because the variable 'dim' was not used. This produced a warning, and my builds have warnings set as errors.
1 parent d5c9530 commit 2a1d222

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,6 @@ template <typename NumericalReductionOp>
663663
static mlir::LogicalResult
664664
verifyArrayAndMaskForReductionOp(NumericalReductionOp reductionOp) {
665665
mlir::Value array = reductionOp->getArray();
666-
mlir::Value dim = reductionOp->getDim();
667666
mlir::Value mask = reductionOp->getMask();
668667

669668
fir::SequenceType arrayTy =

0 commit comments

Comments
 (0)