diff options
author | Pete Steinfeld <47540744+psteinfeld@users.noreply.github.com> | 2023-12-12 08:15:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 08:15:53 -0800 |
commit | 2a1d222010266147c6767f34b25c5a91c93b55de (patch) | |
tree | a31bfb0062dfe644a1bcab769e777d2168e489bd | |
parent | d5c95302b9736b4e785c77463d7f2026b772ba1b (diff) | |
download | llvm-2a1d222010266147c6767f34b25c5a91c93b55de.zip llvm-2a1d222010266147c6767f34b25c5a91c93b55de.tar.gz llvm-2a1d222010266147c6767f34b25c5a91c93b55de.tar.bz2 |
[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.
-rw-r--r-- | flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp b/flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp index 6af2888..46eee8a 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 = |