[flang-commits] [flang] 33f5087 - [flang] Fix an unused variable warning
Kazu Hirata via flang-commits
flang-commits at lists.llvm.org
Thu Sep 28 14:26:02 PDT 2023
Author: Kazu Hirata
Date: 2023-09-28T14:25:54-07:00
New Revision: 33f5087e1b29eec160d82808c1a2c9d4789cbd6c
URL: https://github.com/llvm/llvm-project/commit/33f5087e1b29eec160d82808c1a2c9d4789cbd6c
DIFF: https://github.com/llvm/llvm-project/commit/33f5087e1b29eec160d82808c1a2c9d4789cbd6c.diff
LOG: [flang] Fix an unused variable warning
This patch fixes:
flang/lib/Lower/OpenACC.cpp:876:14: error: unused variable
'nbRangeArgs' [-Werror,-Wunused-variable]
Added:
Modified:
flang/lib/Lower/OpenACC.cpp
Removed:
################################################################################
diff --git a/flang/lib/Lower/OpenACC.cpp b/flang/lib/Lower/OpenACC.cpp
index 3eb1c0eb21e3ed0..57252a228b5e2b9 100644
--- a/flang/lib/Lower/OpenACC.cpp
+++ b/flang/lib/Lower/OpenACC.cpp
@@ -876,6 +876,7 @@ static void genCombiner(fir::FirOpBuilder &builder, mlir::Location loc,
unsigned nbRangeArgs = recipe.getCombinerRegion().getArguments().size() - 2;
assert((nbRangeArgs / 3 == seqTy.getDimension()) &&
"Expect 3 block arguments per dimension");
+ (ovid) nbRangeArgs;
llvm::SmallVector<fir::DoLoopOp> loops;
llvm::SmallVector<mlir::Value> ivs;
for (unsigned i = 2; i < recipe.getCombinerRegion().getArguments().size();
More information about the flang-commits
mailing list