Skip to content

Commit

Permalink
[flang][openacc] Fix -Wunused-variable in OpenACC.cpp (NFC)
Browse files Browse the repository at this point in the history
/llvm-project/flang/lib/Lower/OpenACC.cpp:940:16: error: unused variable 'nbRangeArgs' [-Werror,-Wunused-variable]
      unsigned nbRangeArgs =
               ^
1 error generated.
  • Loading branch information
DamonFool committed Oct 3, 2023
1 parent 185eab1 commit 57c639d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flang/lib/Lower/OpenACC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ static void genCombiner(fir::FirOpBuilder &builder, mlir::Location loc,
}
} else {
// Lowerbound, upperbound and step are passed as block arguments.
unsigned nbRangeArgs =
[[maybe_unused]] unsigned nbRangeArgs =
recipe.getCombinerRegion().getArguments().size() - 2;
assert((nbRangeArgs / 3 == seqTy.getDimension()) &&
"Expect 3 block arguments per dimension");
Expand Down

0 comments on commit 57c639d

Please sign in to comment.