[flang-commits] [flang] [flang] Fix compilation error due to variable no being used (PR #75210)
via flang-commits
flang-commits at lists.llvm.org
Tue Dec 12 08:11:38 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-fir-hlfir
Author: Pete Steinfeld (psteinfeld)
<details>
<summary>Changes</summary>
My builds were failing because the variable 'dim' was not used. This produced a warning, and my builds have warnings set as errors.
---
Full diff: https://github.com/llvm/llvm-project/pull/75210.diff
1 Files Affected:
- (modified) flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp (-1)
``````````diff
diff --git a/flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp b/flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp
index 6af2888b3a60d0..46eee8acac24b9 100644
--- a/flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp
+++ b/flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp
@@ -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 =
``````````
</details>
https://github.com/llvm/llvm-project/pull/75210
More information about the flang-commits
mailing list